mirror of
https://github.com/ocornut/imgui.git
synced 2025-01-26 00:03:49 +01:00
Fixed calling SetNextTreeNodeOpen() on a collapsed window leaking to next frame.
This commit is contained in:
parent
e7922b3fa0
commit
97bf2131e2
@ -6472,6 +6472,8 @@ float ImGui::GetTreeNodeToLabelSpacing()
|
|||||||
void ImGui::SetNextTreeNodeOpen(bool is_open, ImGuiCond cond)
|
void ImGui::SetNextTreeNodeOpen(bool is_open, ImGuiCond cond)
|
||||||
{
|
{
|
||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
|
if (g.CurrentWindow->SkipItems)
|
||||||
|
return;
|
||||||
g.SetNextTreeNodeOpenVal = is_open;
|
g.SetNextTreeNodeOpenVal = is_open;
|
||||||
g.SetNextTreeNodeOpenCond = cond ? cond : ImGuiCond_Always;
|
g.SetNextTreeNodeOpenCond = cond ? cond : ImGuiCond_Always;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user