Ensure skin `InstantiationInfo` is updated when saving

This commit is contained in:
Dean Herbert 2022-09-15 16:21:39 +09:00
parent 64ee210825
commit 1b475f9360
1 changed files with 3 additions and 0 deletions

View File

@ -232,6 +232,9 @@ public void Save(Skin skin)
{
skin.SkinInfo.PerformWrite(s =>
{
// Update for safety
s.InstantiationInfo = skin.GetType().GetInvariantInstantiationInfo();
// Serialise out the SkinInfo itself.
string skinInfoJson = JsonConvert.SerializeObject(s, new JsonSerializerSettings { Formatting = Formatting.Indented });