* Fix for volume materials + AAO
authorMatt Ebb <matt@mke3.net>
Sun, 23 Aug 2009 22:19:45 +0000 (22:19 +0000)
committerMatt Ebb <matt@mke3.net>
Sun, 23 Aug 2009 22:19:45 +0000 (22:19 +0000)
source/blender/render/intern/source/occlusion.c

index a24454a38c453537f34e686b7f87f9043699ba5b..a15377a8c6d8f99e69a89d146d4694708d85d9c2 100644 (file)
@@ -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) {
+                       if((vlr->mat->mode & MA_TRACEBLE) && (vlr->mat->material_type == MA_TYPE_SURFACE)) {
                                tree->face[b].obi= c;
                                tree->face[b].facenr= a;
                                tree->occlusion[b]= 1.0f;