processed material null ref

processedMaterial was not checking to see if each asset was null before getting the image filename inside the call to _createCompositeTexture
This commit is contained in:
marauder2k7 2025-05-13 23:46:54 +01:00
parent c0d87cd3f1
commit a52069bbc5
2 changed files with 6 additions and 4 deletions

View file

@ -130,7 +130,7 @@ for (U32 i = 0; i < max; i++)\
#define DEF_ASSET_BINDS_REFACTOR(className,name)\
DefineEngineMethod(className, get##name, StringTableEntry, (), , "get name")\
{\
return object->get##name##Asset()->getImageFile(); \
return object->get##name##Asset().notNull() ? object->get##name##Asset()->getImageFile() : ""; \
}\
DefineEngineMethod(className, get##name##Asset, StringTableEntry, (), , assetText(name, asset reference))\
{\