aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/drawing.gd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Scripts/drawing.gd4
1 files changed, 3 insertions, 1 deletions
diff --git a/Scripts/drawing.gd b/Scripts/drawing.gd
index c45196b..a8068a2 100644
--- a/Scripts/drawing.gd
+++ b/Scripts/drawing.gd
@@ -17,13 +17,15 @@ func start_drawing():
func _end_drawing():
drawing = false
line.simplify()
+ line.draw_borders()
+ for point in line.points:
+ path.curve.add_point(point)
owner.set_driving(true)
func _input(event):
if drawing and event is InputEventMouseMotion:
line.add_point(event.position)
- path.curve.add_point(event.position)
func reset():