Workbench: clean up the viewport shading code

- added the drawtype_solid, drawtype_wireframe, drawtype_texture to
View3D
- enabled workbench panels for important render engines
- merged workbench_materials to solid_flat_mode. All draw modes will get
its own fast implementation in the workbench
This commit is contained in:
2018-04-17 22:11:56 +02:00
parent dd8d55b31a
commit 3f762dd764
11 changed files with 150 additions and 188 deletions

View File

@@ -87,12 +87,7 @@ class COLLECTION_PT_clay_settings(CollectionButtonsPanel, Panel):
class COLLECTION_PT_workbench_settings(CollectionButtonsPanel, Panel):
bl_label = "Render Settings"
COMPAT_ENGINES = {'BLENDER_WORKBENCH'}
@classmethod
def poll(cls, context):
return context.view_render.engine in cls.COMPAT_ENGINES
bl_label = "Workbench Settings"
def draw(self, context):
layout = self.layout