Make sure UniqueId and HistoryId get defined.
This commit is contained in:
parent
db52a2c389
commit
ef5612f25e
Binary file not shown.
@ -767,19 +767,25 @@ namespace RobloxFiles
|
||||
}
|
||||
}
|
||||
|
||||
Property tags = GetProperty("Tags");
|
||||
Property attributes = GetProperty("AttributesSerialize");
|
||||
|
||||
if (tags == null)
|
||||
var extraProps = new Dictionary<string, PropertyType>()
|
||||
{
|
||||
tags = new Property("Tags", PropertyType.String);
|
||||
AddProperty(ref tags);
|
||||
{ "Tags", PropertyType.String },
|
||||
{ "AttributesSerialize", PropertyType.String },
|
||||
|
||||
{ "UniqueId", PropertyType.UniqueId },
|
||||
{ "HistoryId", PropertyType.UniqueId },
|
||||
};
|
||||
|
||||
foreach (var extraProp in extraProps)
|
||||
{
|
||||
string name = extraProp.Key;
|
||||
var propType = extraProp.Value;
|
||||
|
||||
if (GetProperty(name) == null)
|
||||
{
|
||||
var prop = new Property(name, propType);
|
||||
AddProperty(ref prop);
|
||||
}
|
||||
|
||||
if (attributes == null)
|
||||
{
|
||||
attributes = new Property("AttributesSerialize", PropertyType.String);
|
||||
AddProperty(ref attributes);
|
||||
}
|
||||
|
||||
return Properties;
|
||||
|
Loading…
Reference in New Issue
Block a user