Skip to content

Commit

Permalink
Merge pull request #91830 from Chaosus/fix_animation_history_bug
Browse files Browse the repository at this point in the history
Fix errors on pressing autoplay in sprite frames editor
  • Loading branch information
akien-mga committed May 14, 2024
2 parents 2b3d913 + 56026e6 commit 598be9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/sprite_frames_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ void SpriteFramesEditor::_autoplay_pressed() {

if (animated_sprite) {
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
undo_redo->create_action(TTR("Toggle Autoplay"), UndoRedo::MERGE_DISABLE, frames.ptr());
undo_redo->create_action(TTR("Toggle Autoplay"), UndoRedo::MERGE_DISABLE, animated_sprite);
String current = animated_sprite->call("get_animation");
String current_auto = animated_sprite->call("get_autoplay");
if (current == current_auto) {
Expand Down

0 comments on commit 598be9b

Please sign in to comment.