mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-14 00:34:18 +00:00
TreePush: removed arbitrary/weird suppot for TreePush((const char*)NULL)
This commit is contained in:
parent
7b8bc864e9
commit
4f10fe0a27
3 changed files with 8 additions and 3 deletions
|
|
@ -5983,7 +5983,7 @@ void ImGui::TreePush(const char* str_id)
|
|||
ImGuiWindow* window = GetCurrentWindow();
|
||||
Indent();
|
||||
window->DC.TreeDepth++;
|
||||
PushID(str_id ? str_id : "#TreePush");
|
||||
PushID(str_id);
|
||||
}
|
||||
|
||||
void ImGui::TreePush(const void* ptr_id)
|
||||
|
|
@ -5991,7 +5991,7 @@ void ImGui::TreePush(const void* ptr_id)
|
|||
ImGuiWindow* window = GetCurrentWindow();
|
||||
Indent();
|
||||
window->DC.TreeDepth++;
|
||||
PushID(ptr_id ? ptr_id : (const void*)"#TreePush");
|
||||
PushID(ptr_id);
|
||||
}
|
||||
|
||||
void ImGui::TreePushOverrideID(ImGuiID id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue