remove not very useful check (and nil/string compare not OK in Godot 4
This commit is contained in:
parent
bb324fdc59
commit
13dba879c9
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user