瀏覽代碼

Merge pull request #156 from DavidWyand-GG/issue155-BillboardCreation

Fix for Issue #155 for Billboard Creation
David Wyand 13 年之前
父節點
當前提交
70b95d6d49
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/ts/tsShapeInstance.cpp

+ 1 - 1
Engine/source/ts/tsShapeInstance.cpp

@@ -194,7 +194,7 @@ void TSShapeInstance::buildInstanceData(TSShape * _shape, bool loadMaterials)
    animateSubtrees();
 
    // Construct billboards if not done already
-   if ( loadMaterials && mShapeResource )
+   if ( loadMaterials && mShapeResource && GFXDevice::devicePresent() )
       mShape->setupBillboardDetails( mShapeResource.getPath().getFullPath() );
 }