From 2ede2bac0bb14b96b0d6f65e99d4eeccdc00702b Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Sun, 3 Oct 2021 14:49:18 +0200 Subject: [PATCH] AnimationTrackEditor Fix signal connection on root exiting the tree --- editor/animation_track_editor.cpp | 2 +- editor/animation_track_editor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index d5afd5020c1..62b40ac145d 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -3188,7 +3188,7 @@ Ref AnimationTrackEditor::get_current_animation() const { return animation; } -void AnimationTrackEditor::_root_removed(Node *p_root) { +void AnimationTrackEditor::_root_removed() { root = nullptr; } diff --git a/editor/animation_track_editor.h b/editor/animation_track_editor.h index 4da708dd1ca..0c816d18ece 100644 --- a/editor/animation_track_editor.h +++ b/editor/animation_track_editor.h @@ -372,7 +372,7 @@ class AnimationTrackEditor : public VBoxContainer { TrackIndices _confirm_insert(InsertData p_id, TrackIndices p_next_tracks, bool p_create_reset, Ref p_reset_anim, 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);