brush preview on draw/erase switch

This commit is contained in:
2019-03-02 15:27:12 +01:00
parent 98754d01c1
commit 8a7f47b142
3 changed files with 9 additions and 0 deletions

View File

@@ -209,6 +209,13 @@ void NodePanelStroke::update_controls()
m_preview->m_brush = b;
m_preview->draw_stroke();
if (m_brush_thumb->m_path != b->m_brush_thumb_path)
m_brush_thumb->set_image(b->m_brush_thumb_path);
if (m_dual_brush_thumb->m_path != b->m_dual_thumb_path)
m_dual_brush_thumb->set_image(b->m_dual_thumb_path);
if (m_pattern_thumb->m_path != b->m_pattern_thumb_path)
m_pattern_thumb->set_image(b->m_pattern_thumb_path);
}
void NodePanelStroke::init_fold(const std::string& name)