diff options
author | cel 🌸 <cel@blos.sm> | 2023-07-09 17:05:00 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-07-09 17:05:00 +0100 |
commit | 041ce9927f269ce55cb5a5dfa1e3f9f668590fcf (patch) | |
tree | 94425707e7be1eb43d7589debd3b91fa63f81462 /Scripts | |
parent | 859563f6ad4370a7f5f96963d63f4d83eecad9a4 (diff) | |
parent | e789ce08fed7a1b1023c411a7661bac6c8b0fa30 (diff) | |
download | 2023-curve-smoothing.tar.gz 2023-curve-smoothing.tar.bz2 2023-curve-smoothing.zip |
fix crash 2: electric boogaloocurve-smoothing
Diffstat (limited to 'Scripts')
-rw-r--r-- | Scripts/drawing.gd | 4 |
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) |