From 61ff658cc7bf8477797d90cc5d1940ab99c51486 Mon Sep 17 00:00:00 2001 From: marmare314 <49279081+Marmare314@users.noreply.github.com> Date: Sat, 29 Apr 2023 01:13:47 +0200 Subject: [PATCH] potential fix for #6529 --- src/game/editor/editor.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 45b4311e6..f4011e1a5 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -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)