diff options
Diffstat (limited to 'src/game/editor')
| -rw-r--r-- | src/game/editor/editor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |