mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Merge pull request #764 from Azaezel/alpha40/logNo_foundAssetcount
getAssetIdByFilename loaded state fix
This commit is contained in:
commit
02864095ee
2 changed files with 10 additions and 0 deletions
|
|
@ -219,6 +219,11 @@ StringTableEntry ImageAsset::getAssetIdByFilename(StringTableEntry fileName)
|
||||||
//acquire and bind the asset, and return it out
|
//acquire and bind the asset, and return it out
|
||||||
imageAssetId = query.mAssetList[0];
|
imageAssetId = query.mAssetList[0];
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AssetPtr<ImageAsset> imageAsset = imageAssetId;
|
||||||
|
imageAsset->mLoadedState = AssetErrCode::BadFileReference;
|
||||||
|
}
|
||||||
|
|
||||||
return imageAssetId;
|
return imageAssetId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -473,6 +473,11 @@ StringTableEntry ShapeAsset::getAssetIdByFilename(StringTableEntry fileName)
|
||||||
//acquire and bind the asset, and return it out
|
//acquire and bind the asset, and return it out
|
||||||
shapeAssetId = query.mAssetList[0];
|
shapeAssetId = query.mAssetList[0];
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AssetPtr<ShapeAsset> shapeAsset = shapeAssetId;
|
||||||
|
shapeAsset->mLoadedState = AssetErrCode::BadFileReference;
|
||||||
|
}
|
||||||
|
|
||||||
return shapeAssetId;
|
return shapeAssetId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue