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

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);