mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00: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