Commit f3b345f8 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Don't delete image pyramid on every brush size change

BUG:344790
parent 23169bf9
......@@ -278,13 +278,18 @@ void KisBrushChooser::update(KoResource * resource)
void KisBrushChooser::slotActivatedBrush(KoResource * resource)
{
if (m_brush) {
m_brush->clearBrushPyramid();
}
KisBrush* brush = dynamic_cast<KisBrush*>(resource);
if (brush) {
if (m_brush != brush) {
if (m_brush) {
m_brush->clearBrushPyramid();
}
m_brush = brush;
m_brush->prepareBrushPyramid();
if (m_brush) {
m_brush->prepareBrushPyramid();
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment