summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-02-14 08:02:19 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-02-14 08:03:32 -0300
commitf981e9fe915532d6902912c5e038c30f8baf3ed5 (patch)
treed27549a435a063d5aff9305deaedd9b47d049a37
parent89ca15693ee81fa497d1bab24bd772a98bf56279 (diff)
Avoid case where editors are deleted while moved, fixes #25508, fixes #24829
-rw-r--r--editor/animation_track_editor.cpp2
1 files changed, 2 insertions, 0 deletions
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++) {