bug in bvhkdop (bad diff merged, pointed out by jaguarandi)
authorDaniel Genrich <daniel.genrich@gmx.net>
Tue, 13 May 2008 22:29:50 +0000 (22:29 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Tue, 13 May 2008 22:29:50 +0000 (22:29 +0000)
source/blender/blenlib/intern/BLI_kdopbvh.c

index 75ff1d8f257bdcf91609d3de116765af5330b56b..b80fe2103ed2c2bc18ba7aad56f48d09ee0990a6 100644 (file)
@@ -488,6 +488,7 @@ static void bvh_div_nodes(BVHTree *tree, BVHNode *node, int start, int end, char
                        tnode->parent = node;
 
                        partition_nth_element(tree->nodes, start, end, tend, laxis);
+                       refit_kdop_hull(tree, tnode, start, tend);
                        bvh_div_nodes(tree, tnode, start, tend, laxis);
                }
                node->totnode++;