Fix divide by 0 bug in FollowPath demo

This commit is contained in:
Francois Belair 2020-01-16 11:08:23 -05:00
parent f3f40848a1
commit dde2825bde

View File

@ -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()