Reset drawing state when placing stamps
This commit is contained in:
parent
7ccb7e53fe
commit
45b275be0d
@ -1311,6 +1311,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
|
||||
c->LoadStamp();
|
||||
selectPoint2 = ui::Point(-1, -1);
|
||||
selectPoint1 = selectPoint2;
|
||||
isMouseDown = false;
|
||||
drawMode = DrawPoints;
|
||||
break;
|
||||
case 'k':
|
||||
selectPoint2 = ui::Point(-1, -1);
|
||||
@ -1378,6 +1380,8 @@ void GameView::OnBlur()
|
||||
disableAltBehaviour();
|
||||
disableCtrlBehaviour();
|
||||
disableShiftBehaviour();
|
||||
isMouseDown = false;
|
||||
drawMode = DrawPoints;
|
||||
}
|
||||
|
||||
void GameView::OnTick(float dt)
|
||||
|
Reference in New Issue
Block a user