Passing call_selection_changed to update_info_items.

Helps to decide correctly if object was added or only undo / redo operation.
This commit is contained in:
David Kocik 2021-08-31 11:26:00 +02:00
parent 04778e0fa5
commit 788d114a2f

View file

@ -2637,7 +2637,7 @@ void ObjectList::add_object_to_list(size_t obj_idx, bool call_selection_changed)
model_object->config.has("extruder") ? model_object->config.extruder() : 0,
get_mesh_errors_count(obj_idx) > 0);
update_info_items(obj_idx, nullptr, true);
update_info_items(obj_idx, nullptr, call_selection_changed);
// add volumes to the object
if (model_object->volumes.size() > 1) {