Commit 0243cdc6 authored by w4t's avatar w4t

Collapsing header starts open

parent 6e5ac898
Pipeline #58 canceled with stages
...@@ -142,13 +142,13 @@ bool ofxImGui::BeginTree(ofAbstractParameter& parameter, Settings& settings) ...@@ -142,13 +142,13 @@ bool ofxImGui::BeginTree(ofAbstractParameter& parameter, Settings& settings)
bool ofxImGui::BeginTree(const std::string& name, Settings& settings) bool ofxImGui::BeginTree(const std::string& name, Settings& settings)
{ {
bool result; bool result;
ImGui::SetNextTreeNodeOpen(true, ImGuiSetCond_Appearing);
if (settings.treeLevel == 0) if (settings.treeLevel == 0)
{ {
result = ImGui::CollapsingHeader(GetUniqueName(name)); result = ImGui::CollapsingHeader(GetUniqueName(name));
} }
else else
{ {
ImGui::SetNextTreeNodeOpen(true, ImGuiSetCond_Appearing);
result = ImGui::TreeNode(GetUniqueName(name)); result = ImGui::TreeNode(GetUniqueName(name));
} }
if (result) if (result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment