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";
|
fieldName = "Bevel Roundness";
|
||||||
|
|
||||||
PropertyType propType = PropertyType.Unknown;
|
PropertyType propType = PropertyType.Unknown;
|
||||||
|
var flagAttribute = Attribute.GetCustomAttribute(fieldType, typeof(FlagsAttribute));
|
||||||
|
|
||||||
if (fieldType.IsEnum)
|
if (fieldType.IsEnum && flagAttribute == null)
|
||||||
propType = PropertyType.Enum;
|
propType = PropertyType.Enum;
|
||||||
else if (Property.Types.ContainsKey(fieldType))
|
else if (Property.Types.ContainsKey(fieldType))
|
||||||
propType = Property.Types[fieldType];
|
propType = Property.Types[fieldType];
|
||||||
@ -686,7 +687,7 @@ namespace RobloxFiles
|
|||||||
|
|
||||||
string xmlToken = fieldType.Name;
|
string xmlToken = fieldType.Name;
|
||||||
|
|
||||||
if (fieldType.IsEnum)
|
if (fieldType.IsEnum && flagAttribute == null)
|
||||||
xmlToken = "token";
|
xmlToken = "token";
|
||||||
else if (propType == PropertyType.Ref)
|
else if (propType == PropertyType.Ref)
|
||||||
xmlToken = "Ref";
|
xmlToken = "Ref";
|
||||||
|
Loading…
Reference in New Issue
Block a user