From 13dba879c9755ab2811e36ab1f34eb349e6febed Mon Sep 17 00:00:00 2001 From: groug Date: Tue, 14 Feb 2023 19:06:35 +0100 Subject: [PATCH] remove not very useful check (and nil/string compare not OK in Godot 4 --- state_machine.gd | 3 --- 1 file changed, 3 deletions(-) diff --git a/state_machine.gd b/state_machine.gd index 6d82de1..2ebe694 100644 --- a/state_machine.gd +++ b/state_machine.gd @@ -118,9 +118,6 @@ func _change_state(name): # e.g. ['^state1'] # => will populate everything but state1 func add_transition(source, dest, conditions, trigger_name=''): - if not source: - return - var states = [] if typeof(source) == TYPE_ARRAY: for state in source: