aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/drawing.gd
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-07-09 17:05:00 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-07-09 17:05:00 +0100
commit041ce9927f269ce55cb5a5dfa1e3f9f668590fcf (patch)
tree94425707e7be1eb43d7589debd3b91fa63f81462 /Scripts/drawing.gd
parent859563f6ad4370a7f5f96963d63f4d83eecad9a4 (diff)
parente789ce08fed7a1b1023c411a7661bac6c8b0fa30 (diff)
download2023-041ce9927f269ce55cb5a5dfa1e3f9f668590fcf.tar.gz
2023-041ce9927f269ce55cb5a5dfa1e3f9f668590fcf.tar.bz2
2023-041ce9927f269ce55cb5a5dfa1e3f9f668590fcf.zip
fix crash 2: electric boogaloocurve-smoothing
Diffstat (limited to 'Scripts/drawing.gd')
-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)