Fix reference on font asset unload 28ea7f134d

#4059
This commit is contained in:
2026-04-18 23:51:56 +02:00
parent 28ea7f134d
commit d2cdb85678
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -69,6 +69,7 @@ void FontAsset::unload(bool isReloading)
_fontFile.Release();
_virtualBold = nullptr;
_virtualItalic = nullptr;
_virtualMSDF = nullptr;
}
AssetChunksFlag FontAsset::getChunksToPreload() const
+1 -1
View File
@@ -182,7 +182,7 @@ public:
API_FUNCTION() FontAsset* GetItalic();
/// <summary>
/// Gets the MSDF version of the font. Returns itself or creates a new virtual font asset using this font but rasterized with MSDF.
/// Gets the MSDF version of the font. Returns itself or creates a new virtual font asset using this font but rasterized with Multi-channel Signed Distance Field (MSDF).
/// </summary>
/// <returns>The virtual font or this.</returns>
API_FUNCTION() FontAsset* GetMSDF();