diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-01-31 19:31:10 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-01-31 19:31:10 -0500 |
| commit | 47d3d48ad76d6a4e40da1d945cbc8940ae2922c7 (patch) | |
| tree | 233963233206323b11e440394d61d97ee68b34f3 /editor | |
| parent | 61cb835291af07cfc59c123241c3641a2fba185f (diff) | |
pke: first-pass font serialization
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/editor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp index b3d0f4a..5cb6a9d 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -716,6 +716,7 @@ void RecordImGuiEntityTypes() { } void GenerateMTSDF(const Asset *a) { + assert(PK_HAS_FLAG(a->type, PKE_ASSET_TYPE_FONT)); std::error_code e; std::filesystem::create_directory("./cache", e); if (msdfgen::FreetypeHandle *ft = msdfgen::initializeFreetype()) { |
