mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Ensure skin InstantiationInfo
is updated when saving
This commit is contained in:
parent
64ee210825
commit
1b475f9360
@ -232,6 +232,9 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
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
Block a user