Răsfoiți Sursa

Merge pull request #482 from DavidWyand-GG/DecalManagerContainer

DecalManager scene container fix
David Wyand 12 ani în urmă
părinte
comite
599738477e
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;