Fix for bug #17881: with SSS disabled, SSS materials didn't

render textures, related to other recent bugfix for baking.
This commit is contained in:
Brecht Van Lommel
2008-10-21 14:46:00 +00:00
parent b32bd5e8af
commit 7a4e9d97ff

View File

@@ -1025,6 +1025,6 @@ int sample_sss(Render *re, Material *mat, float *co, float *color)
int sss_pass_done(struct Render *re, struct Material *mat)
{
return ((re->flag & R_BAKING) || (re->sss_hash && BLI_ghash_lookup(re->sss_hash, mat)));
return ((re->flag & R_BAKING) || !(re->r.mode & R_SSS) || (re->sss_hash && BLI_ghash_lookup(re->sss_hash, mat)));
}