remove all async_start/end calls

This commit is contained in:
2019-07-08 16:57:30 +02:00
parent 0012e2ce9b
commit f7ead8e157
19 changed files with 531 additions and 721 deletions

View File

@@ -78,7 +78,6 @@ void NodePanelGrid::init_controls()
m_hm_load->on_click = [this](Node*) {
App::I.pick_image([this](std::string path) {
Image img;
async_start();
if (img.load_file(path))
{
m_file_path = path;
@@ -93,8 +92,6 @@ void NodePanelGrid::init_controls()
m_groud_opacity->set_value(1.f);
m_rt_dirty = true;
}
async_update();
async_end();
});
};
@@ -380,7 +377,6 @@ void NodePanelGrid::bake_uvs()
pb->m_progress->SetWidthP(0);
pb->m_title->set_text("Lightmap Rendering");
pb->btn_cancel->destroy();
async_update();
if (m_rt_dirty)
{
@@ -462,7 +458,6 @@ void NodePanelGrid::bake_uvs()
while (pb_value < fb.getHeight())
{
pb->m_progress->SetWidthP((float)pb_value / (float)fb.getHeight() * 100.f);
async_update();
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
worker.join();