From 859563f6ad4370a7f5f96963d63f4d83eecad9a4 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sun, 9 Jul 2023 16:54:44 +0100 Subject: fix crash --- Scripts/drawing.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Scripts/drawing.gd') diff --git a/Scripts/drawing.gd b/Scripts/drawing.gd index 6b94f6e..612ba60 100644 --- a/Scripts/drawing.gd +++ b/Scripts/drawing.gd @@ -2,7 +2,7 @@ extends Node var drawing = false -@onready var line = $Road +@onready var line = $TrackLine @onready var path: Path2D = $TrackPath func _ready(): @@ -34,4 +34,5 @@ func _input(event): func reset(): line.clear_points() + line.clear_borders() path.curve.clear_points() -- cgit