Explorar el Código

Fix for Issue #155 for Billboard Creation

DavidWyand-GG hace 13 años
padre
commit
595119590d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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() );
 }