mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-11-14 04:57:19 +01:00
Fix divide by 0 bug in FollowPath demo
This commit is contained in:
parent
f3f40848a1
commit
dde2825bde
@ -22,7 +22,8 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||||||
update()
|
update()
|
||||||
elif not event.pressed:
|
elif not event.pressed:
|
||||||
drawing = false
|
drawing = false
|
||||||
_simplify()
|
if active_points.size() >= 2:
|
||||||
|
_simplify()
|
||||||
|
|
||||||
|
|
||||||
func _draw() -> void:
|
func _draw() -> void:
|
||||||
|
Loading…
Reference in New Issue
Block a user