mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Added assert in TreePop() to ease catching ID stack underflow earlier.
This commit is contained in:
parent
826d77185e
commit
b5d385824d
@ -13323,6 +13323,7 @@ void ImGui::TreePop()
|
|||||||
}
|
}
|
||||||
window->DC.TreeDepthMayJumpToParentOnPop &= (1 << window->DC.TreeDepth) - 1;
|
window->DC.TreeDepthMayJumpToParentOnPop &= (1 << window->DC.TreeDepth) - 1;
|
||||||
|
|
||||||
|
IM_ASSERT(window->IDStack.Size > 1); // There should always be 1 element in the IDStack (pushed during window creation). If this triggers you called TreePop/PopID too much.
|
||||||
PopID();
|
PopID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user