Skip to content

Commit

Permalink
fix framecount check
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Dec 27, 2024
1 parent 07a7891 commit 578877a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polyscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>::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 "
Expand Down

0 comments on commit 578877a

Please sign in to comment.