Fix for SPE-1747 : Crash[LINUX] or unexpected behavior[OSX and Win] when moving object with Variable layer height
This commit is contained in:
parent
ea72770680
commit
ca3ee712fe
@ -4382,7 +4382,8 @@ void ObjectList::update_and_show_object_settings_item()
|
||||
const wxDataViewItem item = GetSelection();
|
||||
if (!item) return;
|
||||
|
||||
const wxDataViewItem& obj_item = m_objects_model->IsSettingsItem(item) ? m_objects_model->GetParent(item) : item;
|
||||
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()); });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user