fix: Fixes signal handling on AnimationPlayer nodes. (#458)
Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
This commit is contained in:
@@ -80,6 +80,13 @@ func play(name: String, backwards: bool = false):
|
|||||||
self,
|
self,
|
||||||
"_on_animation_finished"
|
"_on_animation_finished"
|
||||||
)
|
)
|
||||||
|
if _is_animation_player:
|
||||||
|
_player_node.connect(
|
||||||
|
"animation_finished",
|
||||||
|
self,
|
||||||
|
"_on_animation_finished"
|
||||||
|
)
|
||||||
|
else:
|
||||||
_player_node.connect(
|
_player_node.connect(
|
||||||
"animation_finished",
|
"animation_finished",
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user