AnimationTrackEditor Fix signal connection on root exiting the tree

(cherry picked from commit 2ede2bac0b)
This commit is contained in:
kleonc 2021-10-03 14:49:18 +02:00 committed by Rémi Verschelde
parent 5fa7ed7686
commit 06b7f218c6
2 changed files with 2 additions and 2 deletions

View file

@ -3228,7 +3228,7 @@ Ref<Animation> AnimationTrackEditor::get_current_animation() const {
return animation; return animation;
} }
void AnimationTrackEditor::_root_removed(Node *p_root) { void AnimationTrackEditor::_root_removed() {
root = nullptr; root = nullptr;
} }

View file

@ -376,7 +376,7 @@ class AnimationTrackEditor : public VBoxContainer {
TrackIndices _confirm_insert(InsertData p_id, TrackIndices p_next_tracks, bool p_create_reset, Ref<Animation> p_reset_anim, bool p_create_beziers); TrackIndices _confirm_insert(InsertData p_id, TrackIndices p_next_tracks, bool p_create_reset, Ref<Animation> p_reset_anim, bool p_create_beziers);
void _insert_delay(bool p_create_reset, bool p_create_beziers); void _insert_delay(bool p_create_reset, bool p_create_beziers);
void _root_removed(Node *p_root); void _root_removed();
PropertyInfo _find_hint_for_track(int p_idx, NodePath &r_base_path, Variant *r_current_val = nullptr); PropertyInfo _find_hint_for_track(int p_idx, NodePath &r_base_path, Variant *r_current_val = nullptr);