Fix T46749: Texture paint & shadeless mode fails

Using shadeless did nothing in texture-paint mode.
(regression in 2.76)
This commit is contained in:
Campbell Barton
2015-11-13 06:12:30 +11:00
parent bd9005ef3b
commit 930771d0cf
2 changed files with 15 additions and 5 deletions

View File

@@ -3046,7 +3046,7 @@ class VIEW3D_PT_view3d_shading(Panel):
col.prop(view, "use_matcap")
if view.use_matcap:
col.template_icon_view(view, "matcap_icon")
elif view.viewport_shade == 'TEXTURED':
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")