remove not very useful check (and nil/string compare not OK in Godot 4

This commit is contained in:
groug 2023-02-14 19:06:35 +01:00
parent bb324fdc59
commit 13dba879c9

View File

@ -118,9 +118,6 @@ func _change_state(name):
# e.g. ['^state1'] # e.g. ['^state1']
# => will populate everything but state1 # => will populate everything but state1
func add_transition(source, dest, conditions, trigger_name=''): func add_transition(source, dest, conditions, trigger_name=''):
if not source:
return
var states = [] var states = []
if typeof(source) == TYPE_ARRAY: if typeof(source) == TYPE_ARRAY:
for state in source: for state in source: