mirror of https://github.com/ppy/osu
Ensure skin `InstantiationInfo` is updated when saving
This commit is contained in:
parent
64ee210825
commit
1b475f9360
|
@ -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 });
|
||||
|
||||
|
|
Loading…
Reference in New Issue