mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
imageasset entries can be blank
don't spam the console. and definitely don't try and load it
This commit is contained in:
parent
8d643a35b6
commit
0303cadcc0
1 changed files with 1 additions and 4 deletions
|
|
@ -247,13 +247,10 @@ U32 ImageAsset::getAssetById(StringTableEntry assetId, AssetPtr<ImageAsset>* ima
|
||||||
{
|
{
|
||||||
if (imageAsset->isNull())
|
if (imageAsset->isNull())
|
||||||
{
|
{
|
||||||
(*imageAsset)->loadImage();
|
|
||||||
//Well that's bad, loading the fallback failed.
|
|
||||||
Con::warnf("ImageAsset::getAssetById - Finding of asset with id %s failed with no fallback asset", assetId);
|
|
||||||
return AssetErrCode::Failed;
|
return AssetErrCode::Failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
//handle noshape not being loaded itself
|
//handle fallback not being loaded itself
|
||||||
if ((*imageAsset)->mLoadedState == BadFileReference)
|
if ((*imageAsset)->mLoadedState == BadFileReference)
|
||||||
{
|
{
|
||||||
(*imageAsset)->loadImage();
|
(*imageAsset)->loadImage();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue