fix an issue with calculating the max depth of btDbvt
(shouldn't impact the btDbvtBroadphase or other code, feature seems to be unused)
This commit is contained in:
@@ -61,7 +61,7 @@ static void getmaxdepth(const btDbvtNode* node,int depth,int& maxdepth)
|
|||||||
if(node->isinternal())
|
if(node->isinternal())
|
||||||
{
|
{
|
||||||
getmaxdepth(node->childs[0],depth+1,maxdepth);
|
getmaxdepth(node->childs[0],depth+1,maxdepth);
|
||||||
getmaxdepth(node->childs[0],depth+1,maxdepth);
|
getmaxdepth(node->childs[1],depth+1,maxdepth);
|
||||||
} else maxdepth=btMax(maxdepth,depth);
|
} else maxdepth=btMax(maxdepth,depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user