[gimp/goat-invasion: 160/241] 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: 160/241] app: save some lines of code in gimp_gegl_create_apply_opacity_node()
- Date: Sat, 24 Mar 2012 20:56:15 +0000 (UTC)
commit 95b0aff53c0aaea1e39959f94b59f9274248a4b4
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]