mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-13 23:33:26 +00:00
Metrics: browsing font baked data persist tree state when e.g. using LoadAll.
This commit is contained in:
@@ -17313,7 +17313,7 @@ void ImGui::DebugNodeFont(ImFont* font)
|
||||
ImFontBaked* baked = &atlas->Builder->BakedPool[baked_n];
|
||||
if (baked->OwnerFont != font)
|
||||
continue;
|
||||
PushID(baked_n);
|
||||
PushID(baked->BakedId);
|
||||
if (TreeNode("Glyphs", "Baked at { %.2fpx, d.%.2f }: %d glyphs%s", baked->Size, baked->RasterizerDensity, baked->Glyphs.Size, (baked->LastUsedFrame < atlas->Builder->FrameCount - 1) ? " *Unused*" : ""))
|
||||
{
|
||||
if (SmallButton("Load all"))
|
||||
|
||||
Reference in New Issue
Block a user