Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorLukas Matena <lukasmatena@seznam.cz>2018-10-10 12:14:09 +0300
committerLukas Matena <lukasmatena@seznam.cz>2018-10-10 12:14:09 +0300
commitced5e8540f74a65a1aa10ecb19d398af78a6264b (patch)
treeb362aa2e1357c0240c68638c38c2db44ac30b5b3 /xs
parentbf5d3ed636a0ef36156fe423e1824345cb6ff8a3 (diff)
SLA support points are deleted when an object is cut or split
Diffstat (limited to 'xs')
-rw-r--r--xs/src/libslic3r/Model.cpp3
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;