#2972 - Fixed selection after adding an instance with autocenter active
This commit is contained in:
parent
a6f5fe7bea
commit
e6604afd05
@ -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);
|
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();
|
p->arrange();
|
||||||
} else {
|
|
||||||
p->update();
|
p->update();
|
||||||
}
|
|
||||||
|
|
||||||
p->get_selection().add_instance(obj_idx, (int)model_object->instances.size() - 1);
|
p->get_selection().add_instance(obj_idx, (int)model_object->instances.size() - 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user