Remove viewport shading panel
We can remove the RNA options as well, but I wanted to tackled the UI first.
This commit is contained in:
parent
740f33d8a2
commit
781e22c2df
|
@ -3336,56 +3336,6 @@ class VIEW3D_PT_view3d_stereo(Panel):
|
|||
split.prop(view, "stereo_3d_volume_alpha", text="Alpha")
|
||||
|
||||
|
||||
class VIEW3D_PT_view3d_shading(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'UI'
|
||||
bl_label = "Shading"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
view = context.space_data
|
||||
scene = context.scene
|
||||
gs = scene.game_settings
|
||||
obj = context.object
|
||||
|
||||
col = layout.column()
|
||||
|
||||
if not scene.render.use_shading_nodes:
|
||||
col.prop(gs, "material_mode", text="")
|
||||
|
||||
if view.viewport_shade == 'SOLID':
|
||||
col.prop(view, "show_textured_solid")
|
||||
col.prop(view, "use_matcap")
|
||||
if view.use_matcap:
|
||||
col.template_icon_view(view, "matcap_icon")
|
||||
if view.viewport_shade == 'TEXTURED' or context.mode == 'PAINT_TEXTURE':
|
||||
if scene.render.use_shading_nodes or gs.material_mode != 'GLSL':
|
||||
col.prop(view, "show_textured_shadeless")
|
||||
|
||||
col.prop(view, "show_backface_culling")
|
||||
|
||||
if view.viewport_shade not in {'BOUNDBOX', 'WIREFRAME'}:
|
||||
if obj and obj.mode == 'EDIT':
|
||||
col.prop(view, "show_occlude_wire")
|
||||
|
||||
fx_settings = view.fx_settings
|
||||
|
||||
if view.viewport_shade not in {'BOUNDBOX', 'WIREFRAME'}:
|
||||
sub = col.column()
|
||||
sub.active = view.region_3d.view_perspective == 'CAMERA'
|
||||
sub.prop(fx_settings, "use_dof")
|
||||
col.prop(fx_settings, "use_ssao", text="Ambient Occlusion")
|
||||
if fx_settings.use_ssao:
|
||||
ssao_settings = fx_settings.ssao
|
||||
subcol = col.column(align=True)
|
||||
subcol.prop(ssao_settings, "factor")
|
||||
subcol.prop(ssao_settings, "distance_max")
|
||||
subcol.prop(ssao_settings, "attenuation")
|
||||
subcol.prop(ssao_settings, "samples")
|
||||
subcol.prop(ssao_settings, "color")
|
||||
|
||||
|
||||
class VIEW3D_PT_view3d_motion_tracking(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'UI'
|
||||
|
@ -3904,7 +3854,6 @@ classes = (
|
|||
VIEW3D_PT_view3d_name,
|
||||
VIEW3D_PT_view3d_display,
|
||||
VIEW3D_PT_view3d_stereo,
|
||||
VIEW3D_PT_view3d_shading,
|
||||
VIEW3D_PT_view3d_motion_tracking,
|
||||
VIEW3D_PT_view3d_meshdisplay,
|
||||
VIEW3D_PT_view3d_meshstatvis,
|
||||
|
|
Loading…
Reference in New Issue