[Bf-blender-cvs] [859a4dd51b8] master: Fix workbench shading pie menu

Campbell Barton noreply at git.blender.org
Tue Jan 8 07:19:10 CET 2019


Commit: 859a4dd51b824f4210c8a85ea3769995ac35cd4c
Author: Campbell Barton
Date:   Tue Jan 8 17:17:52 2019 +1100
Branches: master
https://developer.blender.org/rB859a4dd51b824f4210c8a85ea3769995ac35cd4c

Fix workbench shading pie menu

Expand the enum since it's dynamic, depending on the render engine.

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

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 47863156898..5342ae44d11 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4058,10 +4058,7 @@ class VIEW3D_MT_shading_pie(Menu):
 
         view = context.space_data
 
-        pie.prop_enum(view.shading, "type", value='WIREFRAME')
-        pie.prop_enum(view.shading, "type", value='SOLID')
-        pie.prop_enum(view.shading, "type", value='MATERIAL')
-        pie.prop_enum(view.shading, "type", value='RENDERED')
+        pie.prop(view.shading, "type", expand=True)
 
 
 class VIEW3D_MT_shading_ex_pie(Menu):



More information about the Bf-blender-cvs mailing list