*fix (forgot to multiply by BB size)

This commit is contained in:
2009-07-06 15:35:46 +00:00
parent e0e66f6b74
commit aa12d2153f

View File

@@ -195,7 +195,7 @@ static BVHNode *bvh_new_node(BVHTree *tree, int nid)
if(node+1 > tree->node_next)
tree->node_next = node+1;
node->bb = tree->bb_alloc + nid - 1;
node->bb = tree->bb_alloc + (nid - 1)*6;
tree->bb_next += 6;
return node;