Blender Internal: Add material property "Cast" which can disable both ray and buffer...
[blender.git] / source / blender / render / intern / source / strand.c
index 9a6a2b8ec9cc723230eae216e66ce1a0d73fd90f..190651645db0b3450b522aec67cd8e4e8eb811e7 100644 (file)
@@ -862,7 +862,7 @@ int zbuffer_strands_abuf(Render *re, RenderPart *pa, APixstrand *apixbuf, ListBa
                /* test if we should skip it */
                ma = obr->strandbuf->ma;
 
-               if (shadow && !(ma->mode & MA_SHADBUF))
+               if (shadow && (!(ma->mode2 & MA_CASTSHADOW) || !(ma->mode & MA_SHADBUF)))
                        continue;
                else if (!shadow && (ma->mode & MA_ONLYCAST))
                        continue;