mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-27 22:05:08 +00:00
TreeNode: comments on ImGuiTreeNodeFlags_Leaf. (#4833)
This commit is contained in:
@@ -6744,6 +6744,7 @@ void ImGui::TreeNodeSetOpen(ImGuiID storage_id, bool is_open)
|
||||
|
||||
bool ImGui::TreeNodeUpdateNextOpen(ImGuiID storage_id, ImGuiTreeNodeFlags flags)
|
||||
{
|
||||
// Leaf node always open a new tree/id scope. If you never use it, add ImGuiTreeNodeFlags_NoTreePushOnOpen.
|
||||
if (flags & ImGuiTreeNodeFlags_Leaf)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user