From f981e9fe915532d6902912c5e038c30f8baf3ed5 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 14 Feb 2019 08:02:19 -0300 Subject: Avoid case where editors are deleted while moved, fixes #25508, fixes #24829 --- editor/animation_track_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 0ba45a596e..662137d60d 100644 --- a/editor/animation_track_editor.cpp +++ b/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++) { -- cgit v1.2.3