From 578877afb41007631436451d64ae176dae40af70 Mon Sep 17 00:00:00 2001 From: Nicholas Sharp Date: Fri, 27 Dec 2024 12:30:24 -0500 Subject: [PATCH] fix framecount check --- src/polyscope.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polyscope.cpp b/src/polyscope.cpp index 8248c1ae..ca0e8eb9 100644 --- a/src/polyscope.cpp +++ b/src/polyscope.cpp @@ -894,7 +894,7 @@ void show(size_t forFrames) { exception("must initialize Polyscope with polyscope::init() before calling polyscope::show()."); } - if (isHeadless() && forFrames == 0) { + if (isHeadless() && forFrames == std::numeric_limits::max()) { info("You called show() while in headless mode. In headless mode there is no display to create windows on. By " "default, the show() call will block indefinitely. If you did not mean to run in headless mode, check the " "initialization settings. Otherwise, be sure to set a callback to make something happen while polyscope is "