mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Fixed a regression bug (bundling of multiple STLs into a single model).
This commit is contained in:
@@ -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) :
|
||||||
|
|||||||
Reference in New Issue
Block a user