From 00a8977e38912a240238bf973b11361f8c6bcbb6 Mon Sep 17 00:00:00 2001 From: Mike Owens Date: Wed, 8 Apr 2026 14:12:40 -0400 Subject: [PATCH] SpriteFramesEditor: Fix build with `deprecated=no` Since #114556 (ad46310), SpriteFramesEditor no longer built with `deprecated=no` due to `SpriteFrames::get_animation_loop` and `set_animation_loop` being undefined. This commit directly uses the `{get,set}_animation_loop_mode` replacements, which are always available. --- editor/scene/sprite_frames_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/scene/sprite_frames_editor_plugin.cpp b/editor/scene/sprite_frames_editor_plugin.cpp index b19c4679f3..48583e7bc8 100644 --- a/editor/scene/sprite_frames_editor_plugin.cpp +++ b/editor/scene/sprite_frames_editor_plugin.cpp @@ -1429,7 +1429,7 @@ void SpriteFramesEditor::_animation_remove_undo_redo(const StringName &p_action_ undo_redo->add_undo_method(frames.ptr(), "add_animation", edited_anim); _rename_node_animation(undo_redo, true, edited_anim, edited_anim, edited_anim); undo_redo->add_undo_method(frames.ptr(), "set_animation_speed", edited_anim, frames->get_animation_speed(edited_anim)); - undo_redo->add_undo_method(frames.ptr(), "set_animation_loop", edited_anim, frames->get_animation_loop(edited_anim)); + undo_redo->add_undo_method(frames.ptr(), "set_animation_loop_mode", edited_anim, frames->get_animation_loop_mode(edited_anim)); for (int i = 0; i < frame_count; i++) { Ref texture; float duration;