mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fix for Issue #155 for Billboard Creation
This commit is contained in:
parent
f9cb217132
commit
595119590d
|
|
@ -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() );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue