소스 검색

imageasset entries can be blank
don't spam the console. and definitely don't try and load it

AzaezelX 1 년 전
부모
커밋
0303cadcc0
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      Engine/source/T3D/assets/ImageAsset.cpp

+ 1 - 4
Engine/source/T3D/assets/ImageAsset.cpp

@@ -247,13 +247,10 @@ U32 ImageAsset::getAssetById(StringTableEntry assetId, AssetPtr<ImageAsset>* 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();