Skip to content

Commit

Permalink
AnimationTrackEditor Fix signal connection on root exiting the tree
Browse files Browse the repository at this point in the history
  • Loading branch information
kleonc authored and DarkMessiah committed May 12, 2022
1 parent a6898ea commit 3737130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion editor/animation_track_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3421,7 +3421,7 @@ Ref<Animation> AnimationTrackEditor::get_current_animation() const {
return animation;
}

void AnimationTrackEditor::_root_removed(Node *p_root) {
void AnimationTrackEditor::_root_removed() {
root = nullptr;
}

Expand Down
2 changes: 1 addition & 1 deletion editor/animation_track_editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,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);
void _insert_track(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);

Expand Down

0 comments on commit 3737130

Please sign in to comment.