mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 10:45:56 +08: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:
parent
4ffbd027d0
commit
c414f932d4
@ -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()));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user