浏览代码

Avoid case where editors are deleted while moved, fixes #25508, fixes #24829

Juan Linietsky 6 年之前
父节点
当前提交
f981e9fe91
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      editor/animation_track_editor.cpp

+ 2 - 0
editor/animation_track_editor.cpp

@@ -4066,7 +4066,9 @@ void AnimationTrackEditor::_move_selection_commit() {
 		undo_redo->add_undo_method(this, "_select_at_anim", animation, E->key().track, oldpos);
 	}
 
+	block_animation_update = true; //animation will change and this is triggered from a signal, so block updates
 	undo_redo->commit_action();
+	block_animation_update = false;
 
 	moving_selection = false;
 	for (int i = 0; i < track_edits.size(); i++) {