koffice/krita

Cyrille Berger cyb at lepi.org
Fri May 23 22:10:00 CEST 2008


SVN commit 811839 by berger:

* fix opacity and darken when size is unselected
does someone knows why this (now) commented code was needed ?

CCMAIL:kimageshop at kde.org

 M  +0 -1      TODO  
 M  +3 -3      plugins/paintops/defaultpaintops/kis_brushop.cc  


--- trunk/koffice/krita/TODO #811838:811839
@@ -341,7 +341,6 @@
 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.
--- trunk/koffice/krita/plugins/paintops/defaultpaintops/kis_brushop.cc #811838:811839
@@ -313,7 +313,7 @@
 
     quint8 origOpacity = painter()->opacity();
     KoColor origColor = painter()->paintColor();
-
+    
     if (m_pressureOpacity) {
         if (!m_customOpacity)
             painter()->setOpacity((qint8)(origOpacity * info.pressure()));
@@ -379,10 +379,10 @@
 {
     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 );
 }
 


More information about the kimageshop mailing list