Pārlūkot izejas kodu

need to surpess billboard generation attempts on dedicated servers

AzaezelX 3 gadi atpakaļ
vecāks
revīzija
8343c096df
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      Engine/source/T3D/assets/ShapeAsset.cpp

+ 3 - 2
Engine/source/T3D/assets/ShapeAsset.cpp

@@ -358,8 +358,9 @@ bool ShapeAsset::loadShape()
       mLoadedState = BadFileReference;
       return false; //if it failed to load, bail out
    }
-
-   mShape->setupBillboardDetails(mFilePath, mDiffuseImposterPath, mNormalImposterPath);
+   // Construct billboards if not done already
+   if (GFXDevice::devicePresent())
+      mShape->setupBillboardDetails(mFilePath, mDiffuseImposterPath, mNormalImposterPath);
 
    //If they exist, grab our imposters here and bind them to our shapeAsset