Merge pull request #352 from hiroj/fix_genSerializer_unlit

fix generateCode Serializer, export unlit
This commit is contained in:
ousttrue 2019-12-26 14:20:19 +09:00 committed by GitHub
commit e642c76aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -253,6 +253,10 @@ namespace UniGLTF {
if (fi.FieldType == typeof(string) || fi.FieldType.IsEnum || fi.FieldType.IsArray || fi.FieldType.IsGenericType)
{
}
else if(fi.FieldType == typeof(glTF_KHR_materials_unlit))
{
}
else if (fi.FieldType.IsClass && fi.FieldType.GetFields(FIELD_FLAGS).Length == 0)
{

View File

@ -728,6 +728,11 @@ namespace UniGLTF {
{
f.BeginMap(0); // dummy
if(value.KHR_materials_unlit!=null)
{
f.Key("KHR_materials_unlit"); f.GenSerialize(value.KHR_materials_unlit);
}
f.EndMap();
}