aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts')
-rw-r--r--Scripts/drawing.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/Scripts/drawing.gd b/Scripts/drawing.gd
index 61896f9..832c42d 100644
--- a/Scripts/drawing.gd
+++ b/Scripts/drawing.gd
@@ -23,6 +23,9 @@ 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():