Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / source / blender / render / intern / source / occlusion.c
index a15377a..feef3dd 100644 (file)
@@ -630,7 +630,7 @@ static OcclusionTree *occ_tree_build(Render *re)
                        if((a & 255)==0) vlr= obr->vlaknodes[a>>8].vlak;
                        else vlr++;
 
-                       if((vlr->mat->mode & MA_TRACEBLE) && (vlr->mat->material_type == MA_TYPE_SURFACE))
+                       if(vlr->mat->mode & MA_TRACEBLE)
                                totface++;
                }
        }
@@ -663,7 +663,7 @@ static OcclusionTree *occ_tree_build(Render *re)
                        if((a & 255)==0) vlr= obr->vlaknodes[a>>8].vlak;
                        else vlr++;
 
-                       if((vlr->mat->mode & MA_TRACEBLE) && (vlr->mat->material_type == MA_TYPE_SURFACE)) {
+                       if(vlr->mat->mode & MA_TRACEBLE) {
                                tree->face[b].obi= c;
                                tree->face[b].facenr= a;
                                tree->occlusion[b]= 1.0f;