Fix T41408: Diffuse and specular passes were incorrect with combined/color passes disabled

This commit is contained in:
Sergey Sharybin 2014-08-12 13:33:23 +06:00
parent eadfddd02a
commit d425cb06f6
Notes: blender-bot 2023-02-14 10:14:10 +01:00
Referenced by issue #41408, Render layer pass bug
1 changed files with 1 additions and 1 deletions

View File

@ -1723,7 +1723,7 @@ void shade_lamp_loop(ShadeInput *shi, ShadeResult *shr)
shi->refcol[0]= shi->refcol[1]= shi->refcol[2]= shi->refcol[3]= 0.0f;
/* material color itself */
if (passflag & (SCE_PASS_COMBINED|SCE_PASS_RGBA)) {
if (passflag & (SCE_PASS_COMBINED|SCE_PASS_RGBA|SCE_PASS_DIFFUSE|SCE_PASS_SPEC)) {
if (ma->mode & (MA_FACETEXTURE)) {
shi->r= shi->vcol[0];
shi->g= shi->vcol[1];