mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
need to ensure we've got an asset at all before setting the loaded state
This commit is contained in:
parent
f95a78d2e8
commit
b26c87491f
|
|
@ -440,9 +440,12 @@ U32 ShapeAsset::getAssetById(StringTableEntry assetId, AssetPtr<ShapeAsset>* sha
|
|||
//Didn't work, so have us fall back to a placeholder asset
|
||||
StringTableEntry noShapeId = StringTable->insert("Core_Rendering:noshape");
|
||||
shapeAsset->setAssetId(noShapeId);
|
||||
(*shapeAsset)->mLoadedState = AssetErrCode::UsingFallback;
|
||||
|
||||
if (shapeAsset->notNull())
|
||||
{
|
||||
(*shapeAsset)->mLoadedState = AssetErrCode::UsingFallback;
|
||||
return AssetErrCode::UsingFallback;
|
||||
}
|
||||
|
||||
return AssetErrCode::Failed;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue