#2972 - Fixed selection after adding an instance with autocenter active

This commit is contained in:
Enrico Turri 2019-09-24 09:11:27 +02:00
parent a6f5fe7bea
commit e6604afd05

View File

@ -4288,11 +4288,10 @@ void Plater::increase_instances(size_t num)
sidebar().obj_list()->increase_object_instances(obj_idx, was_one_instance ? num + 1 : num);
if (p->get_config("autocenter") == "1") {
if (p->get_config("autocenter") == "1")
p->arrange();
} else {
p->update();
}
p->update();
p->get_selection().add_instance(obj_idx, (int)model_object->instances.size() - 1);