Fixed instances count after split to objects

This commit is contained in:
Enrico Turri 2018-11-05 11:52:14 +01:00
parent 4b5657b16b
commit e0b488fd11

View file

@ -1478,10 +1478,6 @@ void Plater::priv::split_object()
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);