In an AnimationTree i've setted an OneShot node to play an animation once, but it gets looped. I've checked and that animation it's not looped in AnimationPlayer. I've also tried to add at the end of animation a call to AnimationTree's set function to set false on "active" parameter of OneShot node.
I don't know if this is a bug or i'm doin something wrong.
Can anyone help me?
Code:
onready var animationtree=get_node("gasmask/AnimationTree")
func _process(delta):
if Input.is_action_just_pressed("reload"):
animationtree.set("parameters/reload/active",true)
Pictures:
https://gofile.io/d/pjd5LE
Animation in AnimationPlayer
AnimationTree's OneShot
AnimationTree's panel
Video:
https://gofile.io/d/PX4JIM