mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-25 03:40:40 +00:00
Prune empty quad tree nodes
This commit is contained in:
parent
aecbc2f01c
commit
4f387fdf1c
@ -163,6 +163,9 @@ public:
|
|||||||
boundingBox.expandBy(child->getBoundingBox());
|
boundingBox.expandBy(child->getBoundingBox());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!boundingBox.valid())
|
||||||
|
parent->removeChildren(0, 4);
|
||||||
|
else
|
||||||
parent->setBoundingBox(boundingBox);
|
parent->setBoundingBox(boundingBox);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user