Redraw(blocking=True) always issues a redraw

This commit is contained in:
Matthias Hochsteger 2020-01-27 17:05:21 +01:00
parent 538ca486fd
commit 2620f90f32

View File

@ -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();