refactor export equirectangular

This commit is contained in:
2019-08-15 19:12:50 +02:00
parent e959fb4d91
commit 542e5a9c19
12 changed files with 223 additions and 206 deletions

View File

@@ -60,9 +60,9 @@ bool NodePanelStroke::import_abr(const std::string& path)
auto padded = samp.second->resize_squared(glm::u8vec4(255));
//auto high = padded.resize_power2();
//high.save(path_high);
samp.second->save(path_high);
samp.second->save_png(path_high);
auto thumb = padded.resize(64, 64);
thumb.save(path_thumb);
thumb.save_png(path_thumb);
NodeButtonBrush* brush = new NodeButtonBrush;
m_brush_popup->m_container->add_child(brush);
@@ -89,9 +89,9 @@ bool NodePanelStroke::import_abr(const std::string& path)
const auto& patt = *ii;
std::string path_high = App::I->data_path + "/patterns/" + patt.first + ".png";
std::string path_thumb = App::I->data_path + "/patterns/thumbs/" + patt.first + ".png";
patt.second->save(path_high);
patt.second->save_png(path_high);
auto thumb = patt.second->resize(64, 64);
thumb.save(path_thumb);
thumb.save_png(path_thumb);
NodeButtonBrush* brush = new NodeButtonBrush;
m_pattern_popup->m_container->add_child(brush);