Fixed duplicate instances after "split object to objects"
This commit is contained in:
parent
4b5657b16b
commit
706da612b6
1 changed files with 0 additions and 6 deletions
|
@ -1476,13 +1476,7 @@ void Plater::priv::split_object()
|
||||||
{
|
{
|
||||||
unsigned int counter = 1;
|
unsigned int counter = 1;
|
||||||
for (ModelObject* m : new_objects)
|
for (ModelObject* m : new_objects)
|
||||||
{
|
|
||||||
m->name = current_model_object->name + "_" + std::to_string(counter++);
|
m->name = current_model_object->name + "_" + std::to_string(counter++);
|
||||||
for (ModelInstance* i : current_model_object->instances)
|
|
||||||
{
|
|
||||||
m->add_instance(*i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
remove(obj_idx);
|
remove(obj_idx);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue