mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
null handling
This commit is contained in:
parent
987ff90467
commit
6c2b4f8979
2 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue