From b7605dd0b531fec5e70635b5cbaf36cb29e96730 Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 4 Aug 2011 18:41:41 +0200 Subject: reset quad point selection when activating a different quad. Closes #819 --- src/game/editor/editor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/game/editor') diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index 5c897953..54f09bca 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -1163,6 +1163,8 @@ void CEditor::DoQuad(CQuad *q, int Index) s_Operation = OP_MOVE_ALL; UI()->SetActiveItem(pID); + if(m_SelectedQuad != Index) + m_SelectedPoints = 0; m_SelectedQuad = Index; s_LastWx = wx; s_LastWy = wy; @@ -1170,7 +1172,9 @@ void CEditor::DoQuad(CQuad *q, int Index) if(UI()->MouseButton(1)) { - m_SelectedQuad = Index; + if(m_SelectedQuad != Index) + m_SelectedPoints = 0; + m_SelectedQuad = Index; s_Operation = OP_CONTEXT_MENU; UI()->SetActiveItem(pID); } -- cgit 1.4.1