Skip to content

Commit

Permalink
Reload fonts when a font asset is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
WEGFan committed Jan 1, 2022
1 parent 82e785e commit b5c15de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Celeste.Mod.mm/Mod/Everest/Everest.Content.cs
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,8 @@ public static void Update(ModAsset prev, ModAsset next) {
MTNExt.ObjModelCache.Remove(next.PathVirtual + ".export");
}
MainThreadHelper.Do(() => MTNExt.ReloadModData());
} else if (next.Type == typeof(AssetTypeFont)) {
MainThreadHelper.Do(() => Fonts.Reload());
}

// Loaded assets can be folders, which means that we need to check the updated assets' entire path.
Expand Down

0 comments on commit b5c15de

Please sign in to comment.