mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
potential fix for #6529
This commit is contained in:
parent
fcee2fa6a7
commit
61ff658cc7
|
@ -3605,6 +3605,10 @@ void CEditor::RenderLayers(CUIRect LayersBox)
|
||||||
if(s_Operation == OP_GROUP_DRAG && Clicked)
|
if(s_Operation == OP_GROUP_DRAG && Clicked)
|
||||||
MoveGroup = true;
|
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++)
|
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;
|
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)
|
if(s_Operation != OP_GROUP_DRAG || g != m_SelectedGroup)
|
||||||
|
|
Loading…
Reference in a new issue