aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-03-13 18:19:22 +0100
committerShauren <shauren.trinity@gmail.com>2024-03-13 22:13:50 +0100
commit7850107a42e7709f6e92f542860160b8c1432c94 (patch)
treece7bb4cc8dc3e0b0a57aeab28bf919ab04c013b8
parent668932cf1d6d27f546b0ab8d2aea173454faf187 (diff)
Core/vmaps: Reset BIH::bounds on tree rebuilds
(cherry picked from commit 18200e1b88596dbead10d0b8ecbd10557db43323)
-rw-r--r--src/common/Collision/BoundingIntervalHierarchy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/Collision/BoundingIntervalHierarchy.h b/src/common/Collision/BoundingIntervalHierarchy.h
index 382d8abdf75..a5717637a38 100644
--- a/src/common/Collision/BoundingIntervalHierarchy.h
+++ b/src/common/Collision/BoundingIntervalHierarchy.h
@@ -70,6 +70,7 @@ class TC_COMMON_API BIH
{
tree.clear();
objects.clear();
+ bounds = G3D::AABox::empty();
// create space for the first node
tree.push_back(3u << 30u); // dummy leaf
tree.insert(tree.end(), 2, 0);