Преглед изворни кода

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++) {