potential fix for #6529

This commit is contained in:
marmare314 2023-04-29 01:13:47 +02:00
parent fcee2fa6a7
commit 61ff658cc7

View file

@ -3605,6 +3605,10 @@ void CEditor::RenderLayers(CUIRect LayersBox)
if(s_Operation == OP_GROUP_DRAG && Clicked)
MoveGroup = true;
}
else if(s_pDraggedButton == &m_Map.m_vpGroups[g])
{
s_Operation = OP_NONE;
}
}
for(int i = 0; i < (int)m_Map.m_vpGroups[g]->m_vpLayers.size(); i++)
@ -3800,6 +3804,10 @@ void CEditor::RenderLayers(CUIRect LayersBox)
MoveLayers = true;
}
}
else if(s_pDraggedButton == m_Map.m_vpGroups[g]->m_vpLayers[i])
{
s_Operation = OP_NONE;
}
}
if(s_Operation != OP_GROUP_DRAG || g != m_SelectedGroup)