Преглед на файлове

DecalManager scene container fix

In reference to https://github.com/GarageGames/Torque3D/issues/474 this
is a general fix for all global bounds objects.
DavidWyand-GG преди 12 години
родител
ревизия
5406afa884
променени са 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;