瀏覽代碼

Merge pull request #482 from DavidWyand-GG/DecalManagerContainer

DecalManager scene container fix
David Wyand 12 年之前
父節點
當前提交
599738477e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/scene/sceneContainer.cpp

+ 1 - 1
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;