Add dirty state into Gizmo (hint by @DavidKocik)

This commit is contained in:
Filip Sykala 2021-08-20 09:13:09 +02:00
parent cce3041a95
commit 8fab4885c7
4 changed files with 28 additions and 2 deletions

View file

@ -266,6 +266,7 @@ void GLGizmoSimplify::process()
};
std::function<void(int)> statusfn = [&](int percent) {
m_progress = percent;
set_dirty();
m_parent.schedule_extra_frame(0);
};
@ -290,6 +291,7 @@ void GLGizmoSimplify::process()
m_state = State::settings;
}
// need to render last status fn to change bar graph to buttons
set_dirty();
m_parent.schedule_extra_frame(0);
});
}