improve progress bar, refactor node destruction, simplify layers export
This commit is contained in:
@@ -76,8 +76,7 @@ bool NodePanelStroke::import_abr(const std::string& path)
|
||||
brush->m_user_brush = true;
|
||||
brush->on_click = std::bind(&NodePanelBrush::handle_click, m_brush_popup, std::placeholders::_1);
|
||||
count++;
|
||||
float prog = (float)count / (float)tot;
|
||||
pb->m_progress->SetWidthP(prog * 100.f);
|
||||
pb->set_progress((float)count / (float)tot);
|
||||
});
|
||||
m_brush_popup->save();
|
||||
|
||||
@@ -105,8 +104,7 @@ bool NodePanelStroke::import_abr(const std::string& path)
|
||||
brush->m_user_brush = true;
|
||||
brush->on_click = std::bind(&NodePanelBrush::handle_click, m_pattern_popup, std::placeholders::_1);
|
||||
count++;
|
||||
float prog = (float)count / (float)tot;
|
||||
pb->m_progress->SetWidthP(prog * 100.f);
|
||||
pb->set_progress((float)count / (float)tot);
|
||||
});
|
||||
m_pattern_popup->save();
|
||||
|
||||
@@ -119,8 +117,7 @@ bool NodePanelStroke::import_abr(const std::string& path)
|
||||
App::I->presets->add_brush(pr);
|
||||
}
|
||||
count++;
|
||||
float prog = (float)count / (float)tot;
|
||||
pb->m_progress->SetWidthP(prog * 100.f);
|
||||
pb->set_progress((float)count / (float)tot);
|
||||
}
|
||||
|
||||
App::I->presets->save();
|
||||
|
||||
Reference in New Issue
Block a user