From 2620f90f32c59289c404ac6d46b742a44f536fdd Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 27 Jan 2020 17:05:21 +0100 Subject: [PATCH] Redraw(blocking=True) always issues a redraw --- libsrc/visualization/vsmesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/visualization/vsmesh.cpp b/libsrc/visualization/vsmesh.cpp index 21a2f43e..add9bd71 100644 --- a/libsrc/visualization/vsmesh.cpp +++ b/libsrc/visualization/vsmesh.cpp @@ -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(now-last_time).count(); - if (elapsed * fr > 1) + if (blocking || elapsed * fr > 1) { Ng_Redraw(blocking); last_time = std::chrono::system_clock::now();