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,6 +22,7 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||||||
update()
|
update()
|
||||||
elif not event.pressed:
|
elif not event.pressed:
|
||||||
drawing = false
|
drawing = false
|
||||||
|
if active_points.size() >= 2:
|
||||||
_simplify()
|
_simplify()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user