Follow up to previous commit, proper fix for T46284, incorrect Texture

shading in Texture paint mode and cycles
This commit is contained in:
Antonis Ryakiotakis 2015-10-28 12:51:50 +02:00 committed by Campbell Barton
parent 25beefa8dd
commit 1823e56625
1 changed files with 2 additions and 1 deletions

View File

@ -410,7 +410,8 @@ static void draw_textured_begin(Scene *scene, View3D *v3d, RegionView3D *rv3d, O
solidtex = false;
Gtexdraw.is_lit = 0;
}
else if (v3d->drawtype == OB_SOLID || ((ob->mode & OB_MODE_EDIT) && v3d->drawtype != OB_TEXTURE)) {
else if (v3d->drawtype == OB_SOLID || ((ob->mode & OB_MODE_EDIT) && v3d->drawtype != OB_TEXTURE) ||
(BKE_scene_use_new_shading_nodes(scene) && (ob->mode & OB_MODE_TEXTURE_PAINT))) {
/* draw with default lights in solid draw mode and edit mode */
solidtex = true;
Gtexdraw.is_lit = -1;