FIX schedule_extra_frame on end;
This commit is contained in:
parent
b225fadfde
commit
72d01d75e4
1 changed files with 6 additions and 4 deletions
|
@ -148,7 +148,6 @@ void GLGizmoSimplify::on_render_input_window(float x, float y, float bottom_limi
|
||||||
}
|
}
|
||||||
m_imgui->disabled_end(); // use_error
|
m_imgui->disabled_end(); // use_error
|
||||||
|
|
||||||
|
|
||||||
if (state == State::settings) {
|
if (state == State::settings) {
|
||||||
if (m_imgui->button(_L("Cancel"))) {
|
if (m_imgui->button(_L("Cancel"))) {
|
||||||
if (original_its.has_value()) {
|
if (original_its.has_value()) {
|
||||||
|
@ -243,8 +242,8 @@ void GLGizmoSimplify::process()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
std::function<void(int)> statusfn = [&](int percent) {
|
std::function<void(int)> statusfn = [&](int percent) {
|
||||||
progress = percent;
|
progress = percent;
|
||||||
wxGetApp().plater()->get_current_canvas3D()->schedule_extra_frame(0);
|
m_parent.schedule_extra_frame(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
indexed_triangle_set collapsed;
|
indexed_triangle_set collapsed;
|
||||||
|
@ -270,7 +269,10 @@ void GLGizmoSimplify::process()
|
||||||
} catch (SimplifyCanceledException &) {
|
} catch (SimplifyCanceledException &) {
|
||||||
state = State::settings;
|
state = State::settings;
|
||||||
}
|
}
|
||||||
wxGetApp().plater()->get_current_canvas3D()->schedule_extra_frame(0);
|
// need to render last status fn
|
||||||
|
// without Sleep it freeze until mouse move
|
||||||
|
Sleep(50);
|
||||||
|
m_parent.schedule_extra_frame(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue