1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-17 09:04:27 +00:00

Fixed duplicate instances after "split object to objects"

This commit is contained in:
bubnikv
2018-11-05 12:52:51 +01:00
parent 4b5657b16b
commit 706da612b6
-6
View File
@@ -1476,13 +1476,7 @@ void Plater::priv::split_object()
{
unsigned int counter = 1;
for (ModelObject* m : new_objects)
{
m->name = current_model_object->name + "_" + std::to_string(counter++);
for (ModelInstance* i : current_model_object->instances)
{
m->add_instance(*i);
}
}
remove(obj_idx);