mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
Redraw(blocking=True) always issues a redraw
This commit is contained in:
parent
538ca486fd
commit
2620f90f32
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user