DecalManager scene container fix

In reference to https://github.com/GarageGames/Torque3D/issues/474 this
is a general fix for all global bounds objects.
This commit is contained in:
DavidWyand-GG 2013-09-27 12:15:44 -04:00
parent 1684501ad0
commit 5406afa884

View file

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