Fix referent properties not being generated.

This commit is contained in:
Max 2021-09-05 04:25:46 -05:00
parent 1e5540d151
commit 8ab02cf2a2
2 changed files with 6 additions and 4 deletions

Binary file not shown.

View File

@ -669,10 +669,12 @@ namespace RobloxFiles
PropertyType propType = PropertyType.Unknown; PropertyType propType = PropertyType.Unknown;
if (Property.Types.ContainsKey(fieldType)) if (fieldType.IsEnum)
propType = Property.Types[fieldType];
else if (fieldType.IsEnum)
propType = PropertyType.Enum; propType = PropertyType.Enum;
else if (Property.Types.ContainsKey(fieldType))
propType = Property.Types[fieldType];
else if (typeof(Instance).IsAssignableFrom(fieldType))
propType = PropertyType.Ref;
if (propType != PropertyType.Unknown) if (propType != PropertyType.Unknown)
{ {