[Bf-blender-cvs] [0ec2e7ad534] blender2.8: Shading: Change icon of userpreference in Shading popover

Jeroen Bakker noreply at git.blender.org
Mon Jun 11 12:48:48 CEST 2018


Commit: 0ec2e7ad53422746e6e39f15d72c0febb77ec630
Author: Jeroen Bakker
Date:   Mon Jun 11 12:41:35 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB0ec2e7ad53422746e6e39f15d72c0febb77ec630

Shading: Change icon of userpreference in Shading popover

===================================================================

M	release/scripts/startup/bl_ui/space_view3d.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index c4acfebad9b..899529476a8 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3520,7 +3520,8 @@ class VIEW3D_PT_shading(Panel):
             if shading.light == 'STUDIO':
                 row = col.row()
                 row.template_icon_view(shading, "studio_light")
-                row.operator('wm.studiolight_userpref_show', emboss=False, text="", icon='ZOOMIN')
+                sub = row.column()
+                sub.operator('wm.studiolight_userpref_show', emboss=False, text="", icon='PREFERENCES')
                 if shading.studio_light_orientation == 'WORLD':
                     col.row().prop(shading, "studiolight_rot_z")
 
@@ -3529,7 +3530,7 @@ class VIEW3D_PT_shading(Panel):
                 row.template_icon_view(shading, "matcap")
                 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='ZOOMIN')
+                sub.operator('wm.studiolight_userpref_show', emboss=False, text="", icon='PREFERENCES')
 
         if shading.type == 'SOLID':
             col.separator()
@@ -3579,7 +3580,8 @@ class VIEW3D_PT_shading(Panel):
         elif shading.type in ('MATERIAL'):
             row = col.row()
             row.template_icon_view(shading, "studio_light")
-            op = row.operator('wm.studiolight_userpref_show', emboss=False, text="", icon='ZOOMIN')
+            sub = row.column()
+            sub.operator('wm.studiolight_userpref_show', emboss=False, text="", icon='PREFERENCES')
             if shading.studio_light_orientation == 'WORLD':
                 col.row().prop(shading, "studiolight_rot_z")
                 col.row().prop(shading, "studiolight_background")



More information about the Bf-blender-cvs mailing list