Skip to content

Commit ddbaf44

Browse files
committed
fix framecount check
1 parent c1b17d8 commit ddbaf44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/polyscope.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ void show(size_t forFrames) {
894894
exception("must initialize Polyscope with polyscope::init() before calling polyscope::show().");
895895
}
896896

897-
if (isHeadless() && forFrames == 0) {
897+
if (isHeadless() && forFrames == std::numeric_limits<size_t>::max()) {
898898
info("You called show() while in headless mode. In headless mode there is no display to create windows on. By "
899899
"default, the show() call will block indefinitely. If you did not mean to run in headless mode, check the "
900900
"initialization settings. Otherwise, be sure to set a callback to make something happen while polyscope is "

0 commit comments

Comments
 (0)