null handling

This commit is contained in:
marauder2k7 2025-03-25 19:14:05 +00:00
parent 987ff90467
commit 6c2b4f8979
2 changed files with 6 additions and 3 deletions

View file

@ -187,7 +187,8 @@ ImageAsset::ImageAsset() :
mUseMips(true),
mIsHDRImage(false),
mImageType(Albedo),
mTextureHandle(NULL)
mTextureHandle(NULL),
mIsNamedTarget(false)
{
mLoadedState = AssetErrCode::NotLoaded;
}
@ -384,6 +385,7 @@ void ImageAsset::setImageFile(StringTableEntry pImageFile)
if (String(pImageFile).startsWith("#"))
{
mImageFile = StringTable->insert(pImageFile);
mIsNamedTarget = true;
refreshAsset();
return;
}