[gimp/goat-invasion: 159/412] 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/412] app: save some lines of code in gimp_gegl_create_apply_opacity_node()
- Date: Tue, 3 Apr 2012 09:46:28 +0000 (UTC)
commit 966fd2d94daaaddeebd1f6f0193de0846e6a8f8a
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]