Commit 036be0f5 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Don't update selection mask when it is not set as overlay

It removes about 200ms delay on creating any kind of selection

parent c4161248
......@@ -308,6 +308,13 @@ void KisSelectionMask::setDecorationsVisible(bool value, bool update)
void KisSelectionMask::setDirty(const QVector<QRect> &rects)
if (m_d->image && m_d->image->overlaySelectionMask() == this) {
void KisSelectionMask::flattenSelectionProjection(KisSelectionSP selection, const QRect &dirtyRect) const
......@@ -81,6 +81,9 @@ public:
void setDecorationsVisible(bool value, bool update) override;
using KisDecoratedNodeInterface::setDecorationsVisible;
void setDirty(const QVector<QRect> &rects) override;
using KisEffectMask::setDirty;
void flattenSelectionProjection(KisSelectionSP selection, const QRect &dirtyRect) const override;
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