diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index a94dfcce001..116d7f44305 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -1904,7 +1904,7 @@ SpriteFramesEditor::SpriteFramesEditor() { add_anim->connect(SceneStringName(pressed), callable_mp(this, &SpriteFramesEditor::_animation_add)); duplicate_anim = memnew(Button); - duplicate_anim->set_flat(true); + duplicate_anim->set_theme_type_variation(SceneStringName(FlatButton)); hbc_animlist->add_child(duplicate_anim); duplicate_anim->connect(SceneStringName(pressed), callable_mp(this, &SpriteFramesEditor::_animation_duplicate));