mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge #6542
6542: potential fix for #6529 r=def- a=Marmare314 ## Checklist - [x] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test (especially base/) or added coverage to integration test - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: marmare314 <49279081+Marmare314@users.noreply.github.com>
This commit is contained in:
commit
4b27611201
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue