Commit f8ed4304 authored by Cyrille Berger's avatar Cyrille Berger

* fix opacity and darken when size is unselected

does someone knows why this (now) commented code was needed ?

CCMAIL:kimageshop@kde.org

svn path=/trunk/koffice/; revision=811839
parent 635594ac
......@@ -341,7 +341,6 @@ Remarks by Enkhitan
instead of 0-100% (it could be interesting to keep it as an option
though, to fake real soft brushes like chinese brushes, unless curves
settings for pressure comes back one day).
  - pressure for opacity & darken are broken.
  - the eraser composite mode erases its whole tile/stamp minus the
brush stamp.
  - strokes are "cut" by borders of the canvas.
......
......@@ -313,7 +313,7 @@ void KisBrushOp::paintAt(const KisPaintInformation& info)
quint8 origOpacity = painter()->opacity();
KoColor origColor = painter()->paintColor();
if (m_pressureOpacity) {
if (!m_customOpacity)
painter()->setOpacity((qint8)(origOpacity * info.pressure()));
......@@ -379,10 +379,10 @@ double KisBrushOp::paintLine(const KisPaintInformation &pi1,
{
KisPaintInformation adjustedInfo1(pi1);
KisPaintInformation adjustedInfo2(pi2);
if ( !m_pressureSize ) {
/* if ( !m_pressureSize ) {
adjustedInfo1.setPressure( PRESSURE_DEFAULT );
adjustedInfo2.setPressure( PRESSURE_DEFAULT );
}
}*/
return KisPaintOp::paintLine( adjustedInfo1, adjustedInfo2, savedDist );
}
......
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