1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-06 07:51:35 +00:00

Prune empty quad tree nodes

This commit is contained in:
bzzt 2019-02-20 13:37:00 +00:00 committed by Capostrophic
parent aecbc2f01c
commit 4f387fdf1c

View file

@ -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);
} }