Revision: 25378
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25378
Author:   blendix
Date:     2009-12-14 19:27:38 +0100 (Mon, 14 Dec 2009)

Log Message:
-----------
Fix #20076: SSS renders incorrectly when used by objects in a particle system.

Modified Paths:
--------------
    trunk/blender/source/blender/render/intern/source/zbuf.c

Modified: trunk/blender/source/blender/render/intern/source/zbuf.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/zbuf.c    2009-12-14 
18:15:48 UTC (rev 25377)
+++ trunk/blender/source/blender/render/intern/source/zbuf.c    2009-12-14 
18:27:38 UTC (rev 25378)
@@ -2587,14 +2587,14 @@
                                        v3= vlr->v3;
                                        v4= vlr->v4;
 
-                                       c1= zbuf_part_project(cache, v1->index, 
winmat, bounds, v1->co, ho1);
-                                       c2= zbuf_part_project(cache, v2->index, 
winmat, bounds, v2->co, ho2);
-                                       c3= zbuf_part_project(cache, v3->index, 
winmat, bounds, v3->co, ho3);
+                                       c1= zbuf_part_project(cache, v1->index, 
obwinmat, bounds, v1->co, ho1);
+                                       c2= zbuf_part_project(cache, v2->index, 
obwinmat, bounds, v2->co, ho2);
+                                       c3= zbuf_part_project(cache, v3->index, 
obwinmat, bounds, v3->co, ho3);
 
                                        /* partclipping doesn't need viewplane 
clipping */
                                        partclip= c1 & c2 & c3;
                                        if(v4) {
-                                               c4= zbuf_part_project(cache, 
v4->index, winmat, bounds, v4->co, ho4);
+                                               c4= zbuf_part_project(cache, 
v4->index, obwinmat, bounds, v4->co, ho4);
                                                partclip &= c4;
                                        }
 


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to