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:
@ -291,9 +291,7 @@ private:
|
||||
return ret;
|
||||
}
|
||||
|
||||
void _animation_changed();
|
||||
void _ref_anim(const Ref<Animation> &p_anim);
|
||||
void _unref_anim(const Ref<Animation> &p_anim);
|
||||
void _animation_changed(const StringName &p_name);
|
||||
|
||||
void _set_process(bool p_process, bool p_force = false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user