Commit f77e393c authored by Ivan Yossi's avatar Ivan Yossi 👌

Fix regression on masks Soft and Gauss Rect for smaller sizes

the method shouldSuperSample() must only be set for Default Mask
parent 64dbc994
......@@ -99,11 +99,6 @@ void KisCurveCircleMaskGenerator::setScale(qreal scaleX, qreal scaleY)
d->fadeMaker.setSquareNormCoeffs(d->xcoef, d->ycoef);
}
bool KisCurveCircleMaskGenerator::shouldSupersample() const
{
return effectiveSrcWidth() < 10 || effectiveSrcHeight() < 10;
}
bool KisCurveCircleMaskGenerator::shouldVectorize() const
{
return !shouldSupersample() && spikes() == 2;
......
......@@ -52,8 +52,6 @@ public:
void setScale(qreal scaleX, qreal scaleY) override;
bool shouldSupersample() const override;
void toXML(QDomDocument& , QDomElement&) const override;
void setSoftness(qreal softness) override;
......
......@@ -128,11 +128,6 @@ quint8 KisGaussRectangleMaskGenerator::valueAt(qreal x, qreal y) const
return d->value(xr, yr);
}
bool KisGaussRectangleMaskGenerator::shouldSupersample() const
{
return effectiveSrcWidth() < 10 || effectiveSrcHeight() < 10;
}
bool KisGaussRectangleMaskGenerator::shouldVectorize() const
{
return !shouldSupersample() && spikes() == 2;
......
......@@ -41,7 +41,6 @@ public:
quint8 valueAt(qreal x, qreal y) const override;
void setScale(qreal scaleX, qreal scaleY) override;
bool shouldSupersample() const override;
bool shouldVectorize() const override;
KisBrushMaskApplicatorBase* applicator() override;
void resetMaskApplicator(bool forceScalar);
......
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