[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21491] branches/soc-2009-jaguarandi/ source/blender/render/intern/source/rayobject_bvh.c: Should improve mirror rays (copy past error: was losing dive first heuristic sometimes)

André Pinto andresusanopinto at gmail.com
Fri Jul 10 17:43:59 CEST 2009


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);
 			}





More information about the Bf-blender-cvs mailing list