fix brush tip and pattern import

This commit is contained in:
2019-03-03 08:24:45 +01:00
parent 0f8d9eff63
commit e7f734c824
3 changed files with 10 additions and 6 deletions

View File

@@ -66,13 +66,14 @@ void NodePanelBrush::init()
std::string path_high = App::I.data_path + "/" + m_dir_name + "/" + name + ".png";
std::string path_thumb = App::I.data_path + "/" + m_dir_name + "/thumbs/" + name + ".png";
img = img.resize_squared(glm::u8vec4(255));
//img.gayscale_alpha();
//img = img.resize_squared(glm::u8vec4(255));
if (m_dir_name == "brushes")
img.gayscale_alpha();
auto thumb = img.resize(64, 64);
auto thumb = img.resize(64, 64).resize_squared(glm::u8vec4(255));
thumb.save(path_thumb);
auto po2 = img.resize_power2();
po2.save(path_high);
//auto po2 = img.resize_power2();
img.save(path_high);
async_start();
NodeButtonBrush* brush = new NodeButtonBrush;