mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-24 08:14:27 +08:00
SLA support points are deleted when an object is cut or split
This commit is contained in:
parent
bf5d3ed636
commit
ced5e8540f
@ -819,6 +819,8 @@ void ModelObject::cut(coordf_t z, Model* model) const
|
||||
// clone this one to duplicate instances, materials etc.
|
||||
ModelObject* upper = model->add_object(*this);
|
||||
ModelObject* lower = model->add_object(*this);
|
||||
upper->sla_support_points.clear();
|
||||
lower->sla_support_points.clear();
|
||||
upper->clear_volumes();
|
||||
lower->clear_volumes();
|
||||
upper->input_file = "";
|
||||
@ -873,6 +875,7 @@ void ModelObject::split(ModelObjectPtrs* new_objects)
|
||||
mesh->repair();
|
||||
|
||||
ModelObject* new_object = m_model->add_object(*this, false);
|
||||
new_object->sla_support_points.clear();
|
||||
new_object->input_file = "";
|
||||
ModelVolume* new_volume = new_object->add_volume(*mesh);
|
||||
new_volume->name = volume->name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user