aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/drawing.gd
diff options
context:
space:
mode:
authorLibravatar perivesta <>2023-07-09 17:40:17 +0200
committerLibravatar perivesta <>2023-07-09 17:40:17 +0200
commitf977fc5a19ba8e315a2482ad8f99749422c2f83a (patch)
tree516571c4feeeab4ee606918f82b2e377ce31f809 /Scripts/drawing.gd
parent6b6d02ead8b1f5b0f5cf44d0a88abe50769128ca (diff)
download2023-f977fc5a19ba8e315a2482ad8f99749422c2f83a.tar.gz
2023-f977fc5a19ba8e315a2482ad8f99749422c2f83a.tar.bz2
2023-f977fc5a19ba8e315a2482ad8f99749422c2f83a.zip
Revert "merge branch 'curve-smoothing'"
This reverts commit fd37d1030f79705fc7a2498bcd356ebc86462544, reversing changes made to 12c65d9ed4447a60b26b952fdfc397f45be2ca72.
Diffstat (limited to '')
-rw-r--r--Scripts/drawing.gd6
1 files changed, 1 insertions, 5 deletions
diff --git a/Scripts/drawing.gd b/Scripts/drawing.gd
index 6b94f6e..832c42d 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: Line2D = $TrackLine
@onready var path: Path2D = $TrackPath
func _ready():
@@ -16,10 +16,6 @@ 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)