From 5406afa884de28b28f57f2752806ba84ad9af9d0 Mon Sep 17 00:00:00 2001 From: DavidWyand-GG Date: Fri, 27 Sep 2013 12:15:44 -0400 Subject: [PATCH] DecalManager scene container fix In reference to https://github.com/GarageGames/Torque3D/issues/474 this is a general fix for all global bounds objects. --- Engine/source/scene/sceneContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/scene/sceneContainer.cpp b/Engine/source/scene/sceneContainer.cpp index 27eabbe6c..e99f5be11 100644 --- a/Engine/source/scene/sceneContainer.cpp +++ b/Engine/source/scene/sceneContainer.cpp @@ -243,7 +243,7 @@ void SceneContainer::insertIntoBins(SceneObject* obj) // For huge objects, dump them into the overflow bin. Otherwise, everything // goes into the grid... - if ((maxX - minX + 1) < csmNumBins || (maxY - minY + 1) < csmNumBins && !obj->isGlobalBounds()) + if (!obj->isGlobalBounds() && ((maxX - minX + 1) < csmNumBins || (maxY - minY + 1) < csmNumBins)) { SceneObjectRef** pCurrInsert = &obj->mBinRefHead;