Merge pull request #91830 from Chaosus/fix_animation_history_bug
Fix errors on pressing autoplay in sprite frames editor
This commit is contained in:
commit
598be9bb4e
1 changed files with 1 additions and 1 deletions
|
@ -1733,7 +1733,7 @@ void SpriteFramesEditor::_autoplay_pressed() {
|
||||||
|
|
||||||
if (animated_sprite) {
|
if (animated_sprite) {
|
||||||
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
|
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 = animated_sprite->call("get_animation");
|
||||||
String current_auto = animated_sprite->call("get_autoplay");
|
String current_auto = animated_sprite->call("get_autoplay");
|
||||||
if (current == current_auto) {
|
if (current == current_auto) {
|
||||||
|
|
Loading…
Reference in a new issue