mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Fixed a regression bug (bundling of multiple STLs into a single model).
This commit is contained in:
parent
3469bb2ea6
commit
61b89865ff
1 changed files with 3 additions and 3 deletions
|
@ -341,7 +341,7 @@ void Model::convert_multipart_object()
|
||||||
if (this->objects.empty())
|
if (this->objects.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ModelObject* object = this->add_object();
|
ModelObject* object = new ModelObject(this);
|
||||||
object->input_file = this->objects.front()->input_file;
|
object->input_file = this->objects.front()->input_file;
|
||||||
|
|
||||||
for (const ModelObject* o : this->objects)
|
for (const ModelObject* o : this->objects)
|
||||||
|
@ -351,8 +351,8 @@ void Model::convert_multipart_object()
|
||||||
for (const ModelInstance* i : this->objects.front()->instances)
|
for (const ModelInstance* i : this->objects.front()->instances)
|
||||||
object->add_instance(*i);
|
object->add_instance(*i);
|
||||||
|
|
||||||
while (this->objects.size() > 1)
|
this->clear_objects();
|
||||||
this->delete_object(0);
|
this->objects.push_back(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
ModelObject::ModelObject(Model *model, const ModelObject &other, bool copy_volumes) :
|
ModelObject::ModelObject(Model *model, const ModelObject &other, bool copy_volumes) :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue