Skip to content

Commit 622344b

Browse files
committed
Merge pull request godotengine#99810 from hakro/toggle_skeleton
Style skeleton button on import screen
2 parents ad9abe8 + 8f5b4cd commit 622344b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

editor/icons/SkeletonPreview.svg

Lines changed: 1 addition & 0 deletions
Loading

editor/import/3d/scene_import_settings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ void SceneImportSettingsDialog::_notification(int p_what) {
13441344
light_2_switch->set_button_icon(theme_cache.light_2_icon);
13451345
light_rotate_switch->set_button_icon(theme_cache.rotate_icon);
13461346

1347-
animation_toggle_skeleton_visibility->set_button_icon(get_editor_theme_icon(SNAME("Skeleton3D")));
1347+
animation_toggle_skeleton_visibility->set_button_icon(get_editor_theme_icon(SNAME("SkeletonPreview")));
13481348
} break;
13491349

13501350
case NOTIFICATION_PROCESS: {
@@ -1740,7 +1740,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
17401740
animation_toggle_skeleton_visibility = memnew(Button);
17411741
animation_hbox->add_child(animation_toggle_skeleton_visibility);
17421742
animation_toggle_skeleton_visibility->set_toggle_mode(true);
1743-
animation_toggle_skeleton_visibility->set_flat(true);
1743+
animation_toggle_skeleton_visibility->set_theme_type_variation("FlatButton");
17441744
animation_toggle_skeleton_visibility->set_focus_mode(Control::FOCUS_NONE);
17451745
animation_toggle_skeleton_visibility->set_tooltip_text(TTR("Toggle Animation Skeleton Visibility"));
17461746

0 commit comments

Comments
 (0)