ObjectList Improvements: Show object manipulation panel, when all object's parts are selected

This commit is contained in:
YuSanka 2022-12-20 14:41:50 +01:00
parent 5f75d61d49
commit b11e651649

View File

@ -2660,9 +2660,20 @@ void ObjectList::part_selection_changed()
disable_ununiform_scale = true;
}
else if ( multiple_selection() || (item && m_objects_model->GetItemType(item) == itInstanceRoot )) {
const Selection& selection = scene_selection();
if (selection.is_single_full_object()) {
og_name = _L("Object manipulation");
update_and_show_manipulations = true;
obj_idx = selection.get_object_idx();
ModelObject* object = (*m_objects)[obj_idx];
m_config = &object->config;
disable_ss_manipulation = object->is_cut();
}
else {
og_name = _L("Group manipulation");
const Selection& selection = scene_selection();
// don't show manipulation panel for case of all Object's parts selection
update_and_show_manipulations = !selection.is_single_full_instance();
@ -2704,6 +2715,7 @@ void ObjectList::part_selection_changed()
}
}
}
}
else {
if (item) {
const ItemType type = m_objects_model->GetItemType(item);