SLA support points are deleted when an object is cut or split
This commit is contained in:
parent
bf5d3ed636
commit
ced5e8540f
1 changed files with 3 additions and 0 deletions
|
@ -819,6 +819,8 @@ void ModelObject::cut(coordf_t z, Model* model) const
|
||||||
// clone this one to duplicate instances, materials etc.
|
// clone this one to duplicate instances, materials etc.
|
||||||
ModelObject* upper = model->add_object(*this);
|
ModelObject* upper = model->add_object(*this);
|
||||||
ModelObject* lower = model->add_object(*this);
|
ModelObject* lower = model->add_object(*this);
|
||||||
|
upper->sla_support_points.clear();
|
||||||
|
lower->sla_support_points.clear();
|
||||||
upper->clear_volumes();
|
upper->clear_volumes();
|
||||||
lower->clear_volumes();
|
lower->clear_volumes();
|
||||||
upper->input_file = "";
|
upper->input_file = "";
|
||||||
|
@ -873,6 +875,7 @@ void ModelObject::split(ModelObjectPtrs* new_objects)
|
||||||
mesh->repair();
|
mesh->repair();
|
||||||
|
|
||||||
ModelObject* new_object = m_model->add_object(*this, false);
|
ModelObject* new_object = m_model->add_object(*this, false);
|
||||||
|
new_object->sla_support_points.clear();
|
||||||
new_object->input_file = "";
|
new_object->input_file = "";
|
||||||
ModelVolume* new_volume = new_object->add_volume(*mesh);
|
ModelVolume* new_volume = new_object->add_volume(*mesh);
|
||||||
new_volume->name = volume->name;
|
new_volume->name = volume->name;
|
||||||
|
|
Loading…
Reference in a new issue