fix brush tip and pattern import
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user