From 0303cadcc003bdf32e91d2669d0657b834b63ef7 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Tue, 31 Oct 2023 12:00:35 -0500 Subject: [PATCH] imageasset entries can be blank don't spam the console. and definitely don't try and load it --- Engine/source/T3D/assets/ImageAsset.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Engine/source/T3D/assets/ImageAsset.cpp b/Engine/source/T3D/assets/ImageAsset.cpp index 325acfe09..c3a2db842 100644 --- a/Engine/source/T3D/assets/ImageAsset.cpp +++ b/Engine/source/T3D/assets/ImageAsset.cpp @@ -247,13 +247,10 @@ U32 ImageAsset::getAssetById(StringTableEntry assetId, AssetPtr* ima { 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; } - //handle noshape not being loaded itself + //handle fallback not being loaded itself if ((*imageAsset)->mLoadedState == BadFileReference) { (*imageAsset)->loadImage();