mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Fixed a bug with selection from the 3D-scene when ObjectSettings item is selected in ObjectList
Steps to repro: 1. Add 2 objects, add Settings for some of object -> Object Settings item is selected 2. In the 3D-scene select another object -> BUG: no changes in the ObjectList
This commit is contained in:
@@ -2896,7 +2896,8 @@ void ObjectList::update_selections()
|
|||||||
{
|
{
|
||||||
const auto item = GetSelection();
|
const auto item = GetSelection();
|
||||||
if (selection.is_single_full_object()) {
|
if (selection.is_single_full_object()) {
|
||||||
if (m_objects_model->GetItemType(m_objects_model->GetParent(item)) & itObject)
|
if (m_objects_model->GetItemType(m_objects_model->GetParent(item)) & itObject &&
|
||||||
|
m_objects_model->GetObjectIdByItem(item) == selection.get_object_idx() )
|
||||||
return;
|
return;
|
||||||
sels.Add(m_objects_model->GetItemById(selection.get_object_idx()));
|
sels.Add(m_objects_model->GetItemById(selection.get_object_idx()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user