Add sanity check for default value results checking when filtering out default values

Add additional utility functions for updating parsed object data in the project importer
Adds logic to find and associate FX materials to their terrainMaterials and adding them to the terrian material asset if found on project importer
This commit is contained in:
JeffR 2022-02-02 01:11:33 -06:00
parent b4e346aa3f
commit 696c2e2eec
4 changed files with 242 additions and 18 deletions

View file

@ -728,7 +728,8 @@ ImplementEnumType(_TamlFormatMode,
if (!getWriteDefaults())
{
//If the field hasn't been changed from the default value, then don't bother writing it out
if (dStricmp(defaultObject->getDataField(fieldName, indexBuffer), pFieldValue) == 0)
const char* fieldData = defaultObject->getDataField(fieldName, indexBuffer);
if (fieldData != '\0' && dStricmp(fieldData, pFieldValue) == 0)
continue;
}