diff options
| author | Yuri Rubinsky <chaosus89@gmail.com> | 2024-05-11 13:15:53 +0300 |
|---|---|---|
| committer | Yuri Rubinsky <chaosus89@gmail.com> | 2024-05-13 22:39:05 +0300 |
| commit | 56026e6c763220c4474ed504ec06f44237c876fb (patch) | |
| tree | 2b5fa8725b3be56a11ac0945b4a63abb8a9d7427 | |
| parent | 557f63d03796db78255f055b6d06cb5f9195ff7e (diff) | |
| download | redot-engine-56026e6c763220c4474ed504ec06f44237c876fb.tar.gz | |
Fix errors on pressing autoplay in sprite frames editor
| -rw-r--r-- | editor/plugins/sprite_frames_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index eef9557ca8..2d77c932c7 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -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) { |
