complete dual-brush implementation and ui integration
This commit is contained in:
@@ -315,7 +315,7 @@ bool Brush::load_dual(const std::string& path, const std::string& thumb)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Brush::load_stencil(const std::string& path)
|
||||
bool Brush::load_stencil(const std::string& path, const std::string& thumb)
|
||||
{
|
||||
m_stencil_texture = std::make_shared<Texture2D>();
|
||||
if (!m_stencil_texture->load(path))
|
||||
@@ -323,6 +323,7 @@ bool Brush::load_stencil(const std::string& path)
|
||||
m_stencil_texture->create_mipmaps();
|
||||
m_stencil_texture->auto_destroy = true;
|
||||
m_stencil_path = path;
|
||||
m_stencil_thumb_path = thumb;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user