Fix for bug #17881: with SSS disabled, SSS materials didn't
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 21 Oct 2008 14:46:00 +0000 (14:46 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 21 Oct 2008 14:46:00 +0000 (14:46 +0000)
render textures, related to other recent bugfix for baking.

source/blender/render/intern/source/sss.c

index 2e7ca48affcbe55b507a3d62ac49848a98c5ad34..9fb48a08503ec88c87213c239f0fd968ab453649 100644 (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)));
 }