Revision: 21491
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21491
Author:   jaguarandi
Date:     2009-07-10 17:43:59 +0200 (Fri, 10 Jul 2009)

Log Message:
-----------
Should improve mirror rays (copy past error: was losing dive first heuristic 
sometimes)

Modified Paths:
--------------
    
branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayobject_bvh.c

Modified: 
branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayobject_bvh.c
===================================================================
--- 
branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayobject_bvh.c
    2009-07-10 15:33:35 UTC (rev 21490)
+++ 
branches/soc-2009-jaguarandi/source/blender/render/intern/source/rayobject_bvh.c
    2009-07-10 15:43:59 UTC (rev 21491)
@@ -202,14 +202,13 @@
                                else
                                {
                                        int i;  
-                                       for(i=0; i<BVH_NCHILDS; i++)
+                                       for(i=BVH_NCHILDS-1; i>=0; i--)
                                                if(node->child[i] != 0
 #ifdef RT_USE_HINT
                                                && node->child[i] != 
(BVHNode*)isec->hint
 #endif
                                                )
                                                        stack[stack_pos++] = 
node->child[i];
-                                               else break;
                                }
                                assert(stack_pos <= DFS_STACK_SIZE);
                        }


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

Reply via email to