diff options
| author | oy <Tom_Adams@web.de> | 2011-08-04 18:41:41 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-08-05 19:52:34 +0200 |
| commit | b7605dd0b531fec5e70635b5cbaf36cb29e96730 (patch) | |
| tree | 590a44cb62a1781f13dd671743854c6efb83a8a2 | |
| parent | 72eb98c75ee3f5d8ac87b2ffc3375ca1b329bf72 (diff) | |
| download | zcatch-b7605dd0b531fec5e70635b5cbaf36cb29e96730.tar.gz zcatch-b7605dd0b531fec5e70635b5cbaf36cb29e96730.zip | |
reset quad point selection when activating a different quad. Closes #819
| -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); } |