Skip to content

Commit 0a1c129

Browse files
committed
pause button in xpbd
1 parent c63ef8e commit 0a1c129

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/XPBD/xpbd.cu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ int main(int argc, char** argv)
434434
float total_time = 0;
435435

436436
auto polyscope_callback = [&]() mutable {
437+
if (ImGui::Button("Pause")) {
438+
started = false;
439+
}
437440
if (ImGui::Button("Start Simulation") || started) {
438441
started = true;
439442

0 commit comments

Comments
 (0)