Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2021-04-30 17:54:19 +0300
committerYuSanka <yusanka@gmail.com>2021-04-30 17:56:18 +0300
commitc414f932d4e90b0a25ccf9cf0b2c2b2bd643b599 (patch)
treeebcbd520d9d27270ff78238e882ff51e7d35d927 /src
parent4ffbd027d099ef064be06586e3648b1b224b2c2b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/slic3r/GUI/GUI_ObjectList.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp
index 15c4578d8..75e384fd9 100644
--- a/src/slic3r/GUI/GUI_ObjectList.cpp
+++ b/src/slic3r/GUI/GUI_ObjectList.cpp
@@ -2896,7 +2896,8 @@ void ObjectList::update_selections()
{
const auto item = GetSelection();
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;
sels.Add(m_objects_model->GetItemById(selection.get_object_idx()));
}