Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-08 09:17:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-08 09:17:52 +0300
commit859a4dd51b824f4210c8a85ea3769995ac35cd4c (patch)
tree95d542e79be4af11f14a06e6ea69905e09fe8ff5 /release
parenta0d456daf80013853743e55602d437a6ee8f21d8 (diff)
Fix workbench shading pie menu
Expand the enum since it's dynamic, depending on the render engine.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py5
1 files changed, 1 insertions, 4 deletions
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):