Follow up ca3ee712fe - Added comment line

This commit is contained in:
YuSanka 2023-06-09 11:33:37 +02:00
parent ca3ee712fe
commit 6f5fcf611d

View File

@ -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()); });
}