From b384856adeed758ce3fe395f6b973639f21fc4d8 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sun, 9 Jul 2023 16:21:38 +0100 Subject: add borders --- Scripts/drawing.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Scripts/drawing.gd') 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(): -- cgit