Revision: 22730
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22730
Author:   broken
Date:     2009-08-24 00:19:45 +0200 (Mon, 24 Aug 2009)

Log Message:
-----------
* Fix for volume materials + AAO

Modified Paths:
--------------
    branches/volume25/source/blender/render/intern/source/occlusion.c

Modified: branches/volume25/source/blender/render/intern/source/occlusion.c
===================================================================
--- branches/volume25/source/blender/render/intern/source/occlusion.c   
2009-08-23 22:13:56 UTC (rev 22729)
+++ branches/volume25/source/blender/render/intern/source/occlusion.c   
2009-08-23 22:19:45 UTC (rev 22730)
@@ -663,7 +663,7 @@
                        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;


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to