[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15946] branches/soc-2008-jaguarandi/ source/blender/blenlib/intern/BLI_kdopbvh.c: Last commit mcreated compile errors

André Pinto andresusanopinto at gmail.com
Mon Aug 4 14:12:04 CEST 2008


Revision: 15946
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15946
Author:   jaguarandi
Date:     2008-08-04 14:12:04 +0200 (Mon, 04 Aug 2008)

Log Message:
-----------
Last commit mcreated compile errors

Modified Paths:
--------------
    branches/soc-2008-jaguarandi/source/blender/blenlib/intern/BLI_kdopbvh.c

Modified: branches/soc-2008-jaguarandi/source/blender/blenlib/intern/BLI_kdopbvh.c
===================================================================
--- branches/soc-2008-jaguarandi/source/blender/blenlib/intern/BLI_kdopbvh.c	2008-08-04 11:50:36 UTC (rev 15945)
+++ branches/soc-2008-jaguarandi/source/blender/blenlib/intern/BLI_kdopbvh.c	2008-08-04 12:12:04 UTC (rev 15946)
@@ -479,6 +479,7 @@
 
 int BLI_bvhtree_insert(BVHTree *tree, int index, float *co, int numpoints)
 {
+	int i;
 	BVHNode *node = NULL;
 	
 	// insert should only possible as long as tree->totbranch is 0
@@ -499,8 +500,8 @@
 	// inflate the bv with some epsilon
 	for (i = tree->start_axis; i < tree->stop_axis; i++)
 	{
-		bv[(2 * i)] -= tree->epsilon; // minimum 
-		bv[(2 * i) + 1] += tree->epsilon; // maximum 
+		node->bv[(2 * i)] -= tree->epsilon; // minimum 
+		node->bv[(2 * i) + 1] += tree->epsilon; // maximum 
 	}
 
 	return 1;
@@ -877,6 +878,7 @@
 // call before BLI_bvhtree_update_tree()
 int BLI_bvhtree_update_node(BVHTree *tree, int index, float *co, float *co_moving, int numpoints)
 {
+	int i;
 	BVHNode *node= NULL;
 	
 	// check if index exists
@@ -893,8 +895,8 @@
 	// inflate the bv with some epsilon
 	for (i = tree->start_axis; i < tree->stop_axis; i++)
 	{
-		bv[(2 * i)] -= tree->epsilon; // minimum 
-		bv[(2 * i) + 1] += tree->epsilon; // maximum 
+		node->bv[(2 * i)] -= tree->epsilon; // minimum 
+		node->bv[(2 * i) + 1] += tree->epsilon; // maximum 
 	}
 
 	return 1;





More information about the Bf-blender-cvs mailing list