[gimp/goat-invasion: 159/418] app: save some lines of code in gimp_gegl_create_apply_opacity_node()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 159/418] app: save some lines of code in gimp_gegl_create_apply_opacity_node()
- Date: Wed, 4 Apr 2012 10:39:08 +0000 (UTC)
commit e8db6996bbf7f16eec9d3a6f4f0994f22f138038
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]