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,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: