浏览代码

AnimationTrackEditor Fix signal connection on root exiting the tree

kleonc 3 年之前
父节点
当前提交
2ede2bac0b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      editor/animation_track_editor.cpp
  2. 1 1
      editor/animation_track_editor.h

+ 1 - 1
editor/animation_track_editor.cpp

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

+ 1 - 1
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<Animation> 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);