Skip to content

Commit

Permalink
add display flag for detection outputs (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy authored Oct 7, 2024
1 parent 47dbe95 commit 4373fc0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions SofaImGui/src/SofaImGui/windows/DisplayFlags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ namespace windows
}
}

{
const bool initialValue = displayFlags.getShowDetectionOutputs();
bool changeableValue = initialValue;
ImGui::Checkbox("Show Detection Outputs", &changeableValue);
if (changeableValue != initialValue)
{
displayFlags.setShowDetectionOutputs(changeableValue);
}
}

{
const bool initialValue = displayFlags.getShowBoundingCollisionModels();
bool changeableValue = initialValue;
Expand Down

0 comments on commit 4373fc0

Please sign in to comment.