[gimp] Bug 685830 - opacity and mask of bottom layer ignored on Normal Mode



commit cf0ac5a57bb89155714f351a9571488b24671b32
Author: Michael Natterer <mitch gimp org>
Date:   Tue Oct 9 21:50:29 2012 +0200

    Bug 685830 - opacity and mask of bottom layer ignored on Normal Mode
    
    Let's prefer correct over broken but fast: disabled broken
    optimization for the bottom layer.

 app/operations/gimpoperationnormalmode.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/operations/gimpoperationnormalmode.c b/app/operations/gimpoperationnormalmode.c
index 6be2a1f..34a5424 100644
--- a/app/operations/gimpoperationnormalmode.c
+++ b/app/operations/gimpoperationnormalmode.c
@@ -98,6 +98,11 @@ gimp_operation_normal_parent_process (GeglOperation        *operation,
                                       const GeglRectangle  *result,
                                       gint                  level)
 {
+#if 0
+  /*  this code tries to be smart but is in fact just a too stupid
+   *  copy from gegl's normal mode. to fix it, it needs to take
+   *  mask and opacity into account
+   */
   const GeglRectangle *in_extent  = NULL;
   const GeglRectangle *aux_extent = NULL;
   GObject             *input;
@@ -129,6 +134,7 @@ gimp_operation_normal_parent_process (GeglOperation        *operation,
       gegl_operation_context_set_object (context, "output", input);
       return TRUE;
     }
+#endif
 
   /* chain up, which will create the needed buffers for our actual
    * process function



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]