mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
Fixed build on Linux, abs->std::abs
This commit is contained in:
parent
54897aeac0
commit
01f32e18d6
2 changed files with 9 additions and 5 deletions
|
@ -9,6 +9,9 @@
|
|||
#include "libslic3r/Model.hpp"
|
||||
#include "libslic3r/QuadricEdgeCollapse.hpp"
|
||||
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
namespace Slic3r::GUI {
|
||||
|
||||
GLGizmoSimplify::GLGizmoSimplify(GLCanvas3D & parent,
|
||||
|
@ -274,8 +277,8 @@ void GLGizmoSimplify::process()
|
|||
state = State::settings;
|
||||
}
|
||||
// need to render last status fn
|
||||
// without Sleep it freeze until mouse move
|
||||
Sleep(50);
|
||||
// without sleep it freezes until mouse move
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||
m_parent.schedule_extra_frame(0);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue