Skip to content

Commit 4373fc0

Browse files
authored
add display flag for detection outputs (#134)
1 parent 47dbe95 commit 4373fc0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

SofaImGui/src/SofaImGui/windows/DisplayFlags.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ namespace windows
9494
}
9595
}
9696

97+
{
98+
const bool initialValue = displayFlags.getShowDetectionOutputs();
99+
bool changeableValue = initialValue;
100+
ImGui::Checkbox("Show Detection Outputs", &changeableValue);
101+
if (changeableValue != initialValue)
102+
{
103+
displayFlags.setShowDetectionOutputs(changeableValue);
104+
}
105+
}
106+
97107
{
98108
const bool initialValue = displayFlags.getShowBoundingCollisionModels();
99109
bool changeableValue = initialValue;

0 commit comments

Comments
 (0)