Create default StructuredDataDef struct when none was specified so there is always a root struct

This commit is contained in:
Jan
2022-01-22 14:35:43 +01:00
parent 5327ce8ec9
commit f061ff91f5
2 changed files with 23 additions and 7 deletions

View File

@ -95,7 +95,7 @@ void AssetLoaderStructuredDataDefSet::ConvertStruct(StructuredDataStruct* output
outputProperty.name = memory->Dup(inputProperty.m_name.c_str());
outputProperty.type = ConvertType(inputProperty.m_type);
if(outputProperty.type.type != DATA_BOOL)
if (outputProperty.type.type != DATA_BOOL)
{
assert(inputProperty.m_offset_in_bits % 8 == 0);
outputProperty.offset = inputProperty.m_offset_in_bits / 8;