summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJonathan Nicholl <jonathantnicholl@gmail.com>2022-06-11 21:14:40 -0400
committerJonathan Nicholl <jonathantnicholl@gmail.com>2022-11-21 15:39:03 -0500
commitf8021dae9c5e654a4e2475d8d73ab587c9429f82 (patch)
treec8d6df7dab22498f5ad87085a1bab73ae3d99fe0 /doc
parent11e1c83309e7e7c15018c8b2c6456fa294116244 (diff)
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/AnimationLibrary.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/AnimationLibrary.xml b/doc/classes/AnimationLibrary.xml
index 769b338063..9be4cda5d6 100644
--- a/doc/classes/AnimationLibrary.xml
+++ b/doc/classes/AnimationLibrary.xml
@@ -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>