diff options
Diffstat (limited to 'Scripts/drawing.gd')
-rw-r--r-- | Scripts/drawing.gd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Scripts/drawing.gd b/Scripts/drawing.gd index a8068a2..6b94f6e 100644 --- a/Scripts/drawing.gd +++ b/Scripts/drawing.gd @@ -26,6 +26,10 @@ func _end_drawing(): func _input(event): if drawing and event is InputEventMouseMotion: line.add_point(event.position) + path.curve.add_point(event.position) + if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_RIGHT: + drawing = false + reset() func reset(): |