aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Scripts/drawing.gd4
1 files changed, 1 insertions, 3 deletions
diff --git a/Scripts/drawing.gd b/Scripts/drawing.gd
index 612ba60..e99d4a0 100644
--- a/Scripts/drawing.gd
+++ b/Scripts/drawing.gd
@@ -2,7 +2,7 @@ extends Node
var drawing = false
-@onready var line = $TrackLine
+@onready var line: Line2D = $TrackLine
@onready var path: Path2D = $TrackPath
func _ready():
@@ -18,8 +18,6 @@ func _end_drawing():
drawing = false
line.simplify()
line.draw_borders()
- for point in line.points:
- path.curve.add_point(point)
owner.set_driving(true)