mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-11-10 00:52:10 +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()
|
||||
elif not event.pressed:
|
||||
drawing = false
|
||||
_simplify()
|
||||
if active_points.size() >= 2:
|
||||
_simplify()
|
||||
|
||||
|
||||
func _draw() -> void:
|
||||
|
Loading…
Reference in New Issue
Block a user