Moved bb expansion out of loop.
This commit is contained in:
parent
abed295566
commit
ced418ccb5
@ -226,6 +226,10 @@ int BuildKdTree::divide(KdTree::BuildOptions& options, osg::BoundingBox& bb, int
|
||||
node.bb.expandBy(v1);
|
||||
node.bb.expandBy(v2);
|
||||
|
||||
}
|
||||
|
||||
if (node.bb.valid())
|
||||
{
|
||||
float epsilon = 1e-6;
|
||||
node.bb._min.x() -= epsilon;
|
||||
node.bb._min.y() -= epsilon;
|
||||
|
Loading…
Reference in New Issue
Block a user