Skip to content

Commit

Permalink
Redraw(blocking=True) always issues a redraw
Browse files Browse the repository at this point in the history
  • Loading branch information
mhochsteger committed Jan 27, 2020
1 parent 538ca48 commit 2620f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsrc/visualization/vsmesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3584,7 +3584,7 @@ DLL_HEADER void ExportMeshVis(py::module &m)
static auto last_time = std::chrono::system_clock::now()-std::chrono::seconds(10);
auto now = std::chrono::system_clock::now();
double elapsed = std::chrono::duration<double>(now-last_time).count();
if (elapsed * fr > 1)
if (blocking || elapsed * fr > 1)
{
Ng_Redraw(blocking);
last_time = std::chrono::system_clock::now();
Expand Down

0 comments on commit 2620f90

Please sign in to comment.