diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2018-10-10 12:14:09 +0300 |
---|---|---|
committer | Lukas Matena <lukasmatena@seznam.cz> | 2018-10-10 12:14:09 +0300 |
commit | ced5e8540f74a65a1aa10ecb19d398af78a6264b (patch) | |
tree | b362aa2e1357c0240c68638c38c2db44ac30b5b3 /xs | |
parent | bf5d3ed636a0ef36156fe423e1824345cb6ff8a3 (diff) |
SLA support points are deleted when an object is cut or split
Diffstat (limited to 'xs')
-rw-r--r-- | xs/src/libslic3r/Model.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Model.cpp b/xs/src/libslic3r/Model.cpp index a6fc603f7..e8df86eb7 100644 --- a/xs/src/libslic3r/Model.cpp +++ b/xs/src/libslic3r/Model.cpp @@ -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; |