You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Font Material and Font Texture became empty when modifying font asset #370
Bug
When I use the above code to modify a font, everything appears to work correctly. However, during testing, all fonts fail to render properly. After inspecting the asset file, I found that the Font Material and Font Texture became empty. Then I added the following code at the end and reran my script, then the modified font works fine:
else:
obj.set_raw_data(obj.get_raw_data())
I’m not sure why it fixed the issue. Did I do something wrong, or is this some kind of bug?
To Reproduce
Just run the code attached to modify a font asset.
Activity