Fix T38229: 3D view shadeless display not supported with GLSL, so hide in UI.
This commit is contained in:
@@ -2839,13 +2839,14 @@ class VIEW3D_PT_view3d_shading(Panel):
|
|||||||
|
|
||||||
if not scene.render.use_shading_nodes:
|
if not scene.render.use_shading_nodes:
|
||||||
col.prop(gs, "material_mode", text="")
|
col.prop(gs, "material_mode", text="")
|
||||||
col.prop(view, "show_textured_solid")
|
|
||||||
|
|
||||||
if view.viewport_shade == 'SOLID':
|
if view.viewport_shade == 'SOLID':
|
||||||
|
col.prop(view, "show_textured_solid")
|
||||||
col.prop(view, "use_matcap")
|
col.prop(view, "use_matcap")
|
||||||
if view.use_matcap:
|
if view.use_matcap:
|
||||||
col.template_icon_view(view, "matcap_icon")
|
col.template_icon_view(view, "matcap_icon")
|
||||||
elif view.viewport_shade == 'TEXTURED':
|
elif view.viewport_shade == 'TEXTURED':
|
||||||
|
if scene.render.use_shading_nodes or gs.material_mode != 'GLSL':
|
||||||
col.prop(view, "show_textured_shadeless")
|
col.prop(view, "show_textured_shadeless")
|
||||||
|
|
||||||
col.prop(view, "show_backface_culling")
|
col.prop(view, "show_backface_culling")
|
||||||
|
Reference in New Issue
Block a user