Fix Axes/Faces using the wrong type.
This commit is contained in:
parent
6ae88347e0
commit
1561651ac1
@ -671,8 +671,9 @@ namespace RobloxFiles
|
||||
fieldName = "Bevel Roundness";
|
||||
|
||||
PropertyType propType = PropertyType.Unknown;
|
||||
var flagAttribute = Attribute.GetCustomAttribute(fieldType, typeof(FlagsAttribute));
|
||||
|
||||
if (fieldType.IsEnum)
|
||||
if (fieldType.IsEnum && flagAttribute == null)
|
||||
propType = PropertyType.Enum;
|
||||
else if (Property.Types.ContainsKey(fieldType))
|
||||
propType = Property.Types[fieldType];
|
||||
@ -686,7 +687,7 @@ namespace RobloxFiles
|
||||
|
||||
string xmlToken = fieldType.Name;
|
||||
|
||||
if (fieldType.IsEnum)
|
||||
if (fieldType.IsEnum && flagAttribute == null)
|
||||
xmlToken = "token";
|
||||
else if (propType == PropertyType.Ref)
|
||||
xmlToken = "Ref";
|
||||
|
Loading…
Reference in New Issue
Block a user