Forráskód Böngészése

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

Juan Linietsky 6 éve
szülő
commit
f981e9fe91
1 módosított fájl, 2 hozzáadás és 0 törlés
  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++) {