Fix T38229: 3D view shadeless display not supported with GLSL, so hide in UI.

This commit is contained in:
Brecht Van Lommel 2014-01-21 15:49:03 +01:00
parent 8be4c6e8f3
commit cda894fcfd
Notes: blender-bot 2023-02-14 11:20:25 +01:00
Referenced by issue #38229, Shadeless option has no effect when GLSL is enabled
1 changed files with 3 additions and 2 deletions

View File

@ -2839,14 +2839,15 @@ class VIEW3D_PT_view3d_shading(Panel):
if not scene.render.use_shading_nodes:
col.prop(gs, "material_mode", text="")
col.prop(view, "show_textured_solid")
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")
elif view.viewport_shade == 'TEXTURED':
col.prop(view, "show_textured_shadeless")
if scene.render.use_shading_nodes or gs.material_mode != 'GLSL':
col.prop(view, "show_textured_shadeless")
col.prop(view, "show_backface_culling")
if obj and obj.mode == 'EDIT' and view.viewport_shade not in {'BOUNDBOX', 'WIREFRAME'}: