[gimp/goat-invasion: 159/526] app: save some lines of code in gimp_gegl_create_apply_opacity_node()



commit 889d6d42f8416deb2cf0d5a4c3acbaa277b8287f
Author: Michael Natterer <mitch gimp org>
Date:   Tue Mar 20 14:53:02 2012 +0100

    app: save some lines of code in gimp_gegl_create_apply_opacity_node()

 app/gegl/gimp-gegl-nodes.c |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-nodes.c b/app/gegl/gimp-gegl-nodes.c
index 5110dd6..bbae641 100644
--- a/app/gegl/gimp-gegl-nodes.c
+++ b/app/gegl/gimp-gegl-nodes.c
@@ -108,15 +108,12 @@ gimp_gegl_create_apply_opacity_node (GeglBuffer *mask,
 
       gegl_node_connect_to (mask_source,  "output",
                             translate,    "input");
-      gegl_node_connect_to (translate,    "output",
-                            opacity_node, "aux");
-    }
-  else
-    {
-      gegl_node_connect_to (mask_source,  "output",
-                            opacity_node, "aux");
+
+      mask_source = translate;
     }
 
+  gegl_node_connect_to (mask_source,  "output",
+                        opacity_node, "aux");
   gegl_node_connect_to (opacity_node, "output",
                         output,       "input");
 



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