Add animation_changed signal to AnimationLibrary
AnimationLibrary now listens for the animation_changed signal on its animations and emits this new signal, with the animation name added on. AnimationPlayer now connects to this signal rather than connecting to each individual animation, which was poor practice due to bypassing encapsulation.
This commit is contained in:
parent
11e1c83309
commit
f8021dae9c
5 changed files with 26 additions and 42 deletions
|
|
@ -65,6 +65,13 @@
|
|||
Emitted when an [Animation] is added, under the key [param name].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="animation_changed">
|
||||
<param index="0" name="name" type="StringName" />
|
||||
<description>
|
||||
Emitted when there's a change in one of the animations, e.g. tracks are added, moved or have changed paths. [param name] is the key of the animation that was changed.
|
||||
See also [signal Resource.changed], which this acts as a relay for.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="animation_removed">
|
||||
<param index="0" name="name" type="StringName" />
|
||||
<description>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue