Merge pull request #482 from DavidWyand-GG/DecalManagerContainer

DecalManager scene container fix
This commit is contained in:
David Wyand 2013-09-27 09:17:40 -07:00
commit 599738477e

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;