mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 11:19:51 +02:00
Reset drawing state when placing stamps
This commit is contained in:
@@ -1311,6 +1311,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
|
|||||||
c->LoadStamp();
|
c->LoadStamp();
|
||||||
selectPoint2 = ui::Point(-1, -1);
|
selectPoint2 = ui::Point(-1, -1);
|
||||||
selectPoint1 = selectPoint2;
|
selectPoint1 = selectPoint2;
|
||||||
|
isMouseDown = false;
|
||||||
|
drawMode = DrawPoints;
|
||||||
break;
|
break;
|
||||||
case 'k':
|
case 'k':
|
||||||
selectPoint2 = ui::Point(-1, -1);
|
selectPoint2 = ui::Point(-1, -1);
|
||||||
@@ -1378,6 +1380,8 @@ void GameView::OnBlur()
|
|||||||
disableAltBehaviour();
|
disableAltBehaviour();
|
||||||
disableCtrlBehaviour();
|
disableCtrlBehaviour();
|
||||||
disableShiftBehaviour();
|
disableShiftBehaviour();
|
||||||
|
isMouseDown = false;
|
||||||
|
drawMode = DrawPoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameView::OnTick(float dt)
|
void GameView::OnTick(float dt)
|
||||||
|
Reference in New Issue
Block a user