[gimp] gimp_layer_sync_mode_node(): use gegl:over for normal mode



commit 7739670a9338b2cd921896a285c24e87f1917603
Author: Michael Natterer <mitch gimp org>
Date:   Sun Nov 29 13:51:22 2009 +0100

    gimp_layer_sync_mode_node(): use gegl:over for normal mode

 app/core/gimplayer.c |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c
index 2fc38e7..d0584aa 100644
--- a/app/core/gimplayer.c
+++ b/app/core/gimplayer.c
@@ -1024,10 +1024,21 @@ gimp_layer_sync_mode_node (GimpLayer *layer)
 
       mode_node = gimp_drawable_get_mode_node (GIMP_DRAWABLE (layer));
 
-      gegl_node_set (mode_node,
-                     "operation",  "gimp:point-layer-mode",
-                     "blend-mode", layer->mode,
-                     NULL);
+      switch (layer->mode)
+        {
+        case GIMP_NORMAL_MODE:
+          gegl_node_set (mode_node,
+                         "operation", "gegl:over",
+                         NULL);
+          break;
+
+        default:
+          gegl_node_set (mode_node,
+                         "operation",  "gimp:point-layer-mode",
+                         "blend-mode", layer->mode,
+                         NULL);
+          break;
+        }
     }
 }
 



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