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");
|
var extraProps = new Dictionary<string, PropertyType>()
|
||||||
Property attributes = GetProperty("AttributesSerialize");
|
|
||||||
|
|
||||||
if (tags == null)
|
|
||||||
{
|
{
|
||||||
tags = new Property("Tags", PropertyType.String);
|
{ "Tags", PropertyType.String },
|
||||||
AddProperty(ref tags);
|
{ "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;
|
return Properties;
|
||||||
|
Loading…
Reference in New Issue
Block a user