mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
added fix for editor quad editing by ghost91 Closes #18
This commit is contained in:
parent
25408a102b
commit
7a1953e60b
|
@ -1029,6 +1029,14 @@ void CEditor::DoQuadPoint(CQuad *q, int QuadIndex, int v)
|
|||
s_Operation = OP_CONTEXT_MENU;
|
||||
m_SelectedQuad = QuadIndex;
|
||||
UI()->SetActiveItem(pId);
|
||||
if(!(m_SelectedPoints&(1<<v)))
|
||||
{
|
||||
if(Input()->KeyPressed(KEY_LSHIFT) || Input()->KeyPressed(KEY_RSHIFT))
|
||||
m_SelectedPoints |= 1<<v;
|
||||
else
|
||||
m_SelectedPoints = 1<<v;
|
||||
s_Moved = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue