call render in main thread by function callAfter(hint by @Vojtech)
This commit is contained in:
parent
8fab4885c7
commit
6d895872b0
4 changed files with 30 additions and 14 deletions
|
@ -157,9 +157,8 @@ void GLGizmoBase::update(const UpdateData& data)
|
|||
|
||||
bool GLGizmoBase::update_items_state()
|
||||
{
|
||||
std::lock_guard<std::mutex> g(m_dirty_access);
|
||||
bool res = m_dirty;
|
||||
m_dirty = false;
|
||||
m_dirty = false;
|
||||
return res;
|
||||
};
|
||||
|
||||
|
@ -218,8 +217,7 @@ std::string GLGizmoBase::format(float value, unsigned int decimals) const
|
|||
return Slic3r::string_printf("%.*f", decimals, value);
|
||||
}
|
||||
|
||||
void GLGizmoBase::set_dirty() {
|
||||
std::lock_guard<std::mutex> g(m_dirty_access);
|
||||
void GLGizmoBase::set_dirty() {
|
||||
m_dirty = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue