[gimp] app: simply put GimpImage's layer and channel stacks on top of each other



commit fc2ec837238784aff2cb105c4094f52c9abccc00
Author: Michael Natterer <mitch gimp org>
Date:   Thu Apr 11 14:40:41 2013 +0200

    app: simply put GimpImage's layer and channel stacks on top of each other
    
    which gets rid of the gegl:over we used to combine them.

 app/core/gimpimage.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 073ea85..4695aae 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -1290,7 +1290,6 @@ gimp_image_get_graph (GimpProjectable *projectable)
   GimpImagePrivate  *private = GIMP_IMAGE_GET_PRIVATE (image);
   GeglNode          *layers_node;
   GeglNode          *channels_node;
-  GeglNode          *blend_node;
   GeglNode          *output;
   GimpComponentMask  mask;
 
@@ -1309,14 +1308,8 @@ gimp_image_get_graph (GimpProjectable *projectable)
 
   gegl_node_add_child (private->graph, channels_node);
 
-  blend_node = gegl_node_new_child (private->graph,
-                                    "operation", "gegl:over",
-                                    NULL);
-
   gegl_node_connect_to (layers_node,   "output",
-                        blend_node,    "input");
-  gegl_node_connect_to (channels_node, "output",
-                        blend_node,    "aux");
+                        channels_node, "input");
 
   mask = ~gimp_image_get_visible_mask (image) & GIMP_COMPONENT_ALL;
 
@@ -1326,7 +1319,7 @@ gimp_image_get_graph (GimpProjectable *projectable)
                          "mask",      mask,
                          NULL);
 
-  gegl_node_connect_to (blend_node,            "output",
+  gegl_node_connect_to (channels_node,         "output",
                         private->visible_mask, "input");
 
   output = gegl_node_get_output_proxy (private->graph, "output");


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