mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Command for reloading an object from file. #1466
This commit is contained in:
committed by
bubnikv
parent
d02ee5cf80
commit
8174c05df4
@@ -662,6 +662,8 @@ ModelObject::cut(coordf_t z, Model* model) const
|
||||
ModelObject* lower = model->add_object(*this);
|
||||
upper->clear_volumes();
|
||||
lower->clear_volumes();
|
||||
upper->input_file = "";
|
||||
lower->input_file = "";
|
||||
|
||||
for (ModelVolumePtrs::const_iterator v = this->volumes.begin(); v != this->volumes.end(); ++v) {
|
||||
ModelVolume* volume = *v;
|
||||
@@ -711,6 +713,7 @@ ModelObject::split(ModelObjectPtrs* new_objects)
|
||||
(*mesh)->repair();
|
||||
|
||||
ModelObject* new_object = this->model->add_object(*this, false);
|
||||
new_object->input_file = "";
|
||||
ModelVolume* new_volume = new_object->add_volume(**mesh);
|
||||
new_volume->name = volume->name;
|
||||
new_volume->config = volume->config;
|
||||
|
||||
Reference in New Issue
Block a user