From de748bbedfb81238d15da2db13b94f276038b9f0 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 19 Jun 2018 14:00:34 +0200 Subject: Studiolight: Background Generation of icons --- release/scripts/startup/bl_ui/space_userpref.py | 2 ++ release/scripts/startup/bl_ui/space_view3d.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index c929a3c0f7d..e7f667f5d5f 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -1617,6 +1617,8 @@ class StudioLightPanelMixin(): op = row.operator('wm.studiolight_uninstall', text="", icon='ZOOMOUT') op.index = studio_light.index + box.label(text=studio_light.name) + class USERPREF_PT_studiolight_matcaps(Panel, StudioLightPanelMixin): bl_label = "MatCaps" diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 1a3b0131eb5..b477aefd9da 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3630,7 +3630,7 @@ class VIEW3D_PT_shading_lighting(Panel): layout.row().prop(shading, "light", expand=True) if shading.light == 'STUDIO': row = layout.row() - row.template_icon_view(shading, "studio_light") + row.template_icon_view(shading, "studio_light", show_labels=True) sub = row.column() sub.operator('wm.studiolight_userpref_show', emboss=False, text="", icon='PREFERENCES') if shading.selected_studio_light.orientation == 'WORLD': @@ -3638,14 +3638,14 @@ class VIEW3D_PT_shading_lighting(Panel): elif shading.light == 'MATCAP': row = layout.row() - row.template_icon_view(shading, "studio_light") + row.template_icon_view(shading, "studio_light", show_labels=True) sub = row.column() sub.operator('VIEW3D_OT_toggle_matcap_flip', emboss=False, text="", icon='ARROW_LEFTRIGHT') sub.operator('wm.studiolight_userpref_show', emboss=False, text="", icon='PREFERENCES') elif shading.type in ('MATERIAL'): row = layout.row() - row.template_icon_view(shading, "studio_light") + row.template_icon_view(shading, "studio_light", show_labels=True) sub = row.column() sub.operator('wm.studiolight_userpref_show', emboss=False, text="", icon='PREFERENCES') if shading.selected_studio_light.orientation == 'WORLD': -- cgit v1.2.3