From 47bff2f0eb9a555df80fc6cd9baf13d87674e15a Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Sun, 15 Jun 2025 17:15:59 +0100 Subject: [PATCH] Update guiMissionArea.cpp simplify logic around skipping objects that push the mLevelBounds outside F32_MAX --- Engine/source/gui/worldEditor/guiMissionArea.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Engine/source/gui/worldEditor/guiMissionArea.cpp b/Engine/source/gui/worldEditor/guiMissionArea.cpp index bba3b794e..61189b77a 100644 --- a/Engine/source/gui/worldEditor/guiMissionArea.cpp +++ b/Engine/source/gui/worldEditor/guiMissionArea.cpp @@ -350,16 +350,11 @@ void GuiMissionAreaCtrl::updateLevelBitmap() if (!obj) continue; - // Skip if bounds are too large (e.g., GroundPlane or visual-only objects) - const Box3F& box = obj->getWorldBox(); - const F32 maxSizeThreshold = 2048.0f; // or tweak for your game scale - - VectorF extents = box.getExtents(); - if (extents.x > maxSizeThreshold || extents.y > maxSizeThreshold) + if (obj->isGlobalBounds()) continue; // Merge bounds - mLevelBounds.intersect(box); + mLevelBounds.intersect(obj->getWorldBox()); } const F32 minSize = 256.0f;