Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Genrich <daniel.genrich@gmx.net>2008-05-28 02:42:38 +0400
committerDaniel Genrich <daniel.genrich@gmx.net>2008-05-28 02:42:38 +0400
commitda36e8abca19b667d1c300a154e6e6798af119e9 (patch)
tree1c45a9338a4dd69b259a1732633681d63756b6d6
parent391c7615d19561555ab29c090fcfd56447942548 (diff)
-= KDOP / Collisions =-
1. Fix for face with index=0 not handled
-rw-r--r--source/blender/blenlib/intern/BLI_kdopbvh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/BLI_kdopbvh.c b/source/blender/blenlib/intern/BLI_kdopbvh.c
index cf326f3f460..c884b97b182 100644
--- a/source/blender/blenlib/intern/BLI_kdopbvh.c
+++ b/source/blender/blenlib/intern/BLI_kdopbvh.c
@@ -653,10 +653,10 @@ static void traverse(BVHOverlapData *data, BVHNode *node1, BVHNode *node2)
if(tree_overlap(node1->bv, node2->bv, MIN2(data->tree1->start_axis, data->tree2->start_axis), MIN2(data->tree1->stop_axis, data->tree2->stop_axis)))
{
// check if node1 is a leaf
- if(node1->index)
+ if(!node1->totnode)
{
// check if node2 is a leaf
- if(node2->index)
+ if(!node2->totnode)
{
if(node1 == node2)