Skip to content

Commit 0681039

Browse files
committed
Make draw groups a real toggle
1 parent fcc4aba commit 0681039

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/modules/Instance.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,11 @@ void InstanceModule::DrawInstance() const
182182
ImGui::Text("%s", binary.c_str());
183183

184184
static int drawGroup = 0;
185-
static bool enabled = false;
186-
187185
ImGui::InputInt("Draw group", &drawGroup);
188-
ImGui::Checkbox("Enabled", &enabled);
189186

190187
if (ImGui::Button("Toggle"))
191188
{
192-
INSTANCE_HideUnhideDrawGroup(instance, drawGroup, enabled);
189+
INSTANCE_HideUnhideDrawGroup(instance, drawGroup, (instance->noDrawGroups & (1 << drawGroup)));
193190
}
194191
}
195192

0 commit comments

Comments
 (0)