From 6f5fcf611d02bde5b1eea4fa1be2475cd05c44f5 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 9 Jun 2023 11:33:37 +0200 Subject: [PATCH] Follow up https://github.com/Prusa-Development/PrusaSlicerPrivate/commit/ca3ee712fef0caa768cd595b1b0b12b11f08ca5b - Added comment line --- src/slic3r/GUI/GUI_ObjectList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index 501eb0c95..ab78cb8da 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -4382,8 +4382,8 @@ void ObjectList::update_and_show_object_settings_item() const wxDataViewItem item = GetSelection(); if (!item) return; + // To get object item use GetTopParent(item). This function guarantees return of item with itObject type const wxDataViewItem obj_item = m_objects_model->GetTopParent(item); - assert(m_objects_model->GetItemType(obj_item) == ItemType::itObject); select_item([this, obj_item](){ return add_settings_item(obj_item, &get_item_config(obj_item).get()); }); }