Fix of 8342 (deselection when changing object-specific settings)

This commit is contained in:
Lukas Matena 2022-06-08 14:46:12 +02:00
parent 9420f47b26
commit 60894a26dd

View File

@ -3251,7 +3251,7 @@ 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 | itLayerRoot | itLayer) &&
m_objects_model->GetObjectIdByItem(item) == selection.get_object_idx() )
return;
sels.Add(m_objects_model->GetItemById(selection.get_object_idx()));