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];
|
ImFontBaked* baked = &atlas->Builder->BakedPool[baked_n];
|
||||||
if (baked->OwnerFont != font)
|
if (baked->OwnerFont != font)
|
||||||
continue;
|
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 (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"))
|
if (SmallButton("Load all"))
|
||||||
|
|||||||
Reference in New Issue
Block a user