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 a15377a8c6d8f99e69a89d146d4694708d85d9c2..feef3dd424a81176a2a73bf2ab238f0661a73f18 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;