[gimp/goat-invasion: 424/608] app: don't special case the FS wrt its visibility in the layer stack
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 424/608] app: don't special case the FS wrt its visibility in the layer stack
- Date: Fri, 27 Apr 2012 21:01:01 +0000 (UTC)
commit 05eeb9837ecc8d3982af5a4f0c1571ba35bcea93
Author: Michael Natterer <mitch gimp org>
Date: Thu Apr 5 13:59:16 2012 +0200
app: don't special case the FS wrt its visibility in the layer stack
Its source node produces nothingness anyway, so it can be safely
plugged in. More FS special code gone \o/.
app/core/gimpdrawable.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/app/core/gimpdrawable.c b/app/core/gimpdrawable.c
index e1b2255..e3d7599 100644
--- a/app/core/gimpdrawable.c
+++ b/app/core/gimpdrawable.c
@@ -369,9 +369,7 @@ gimp_drawable_visibility_changed (GimpItem *item)
GeglNode *input = gegl_node_get_input_proxy (node, "input");
GeglNode *output = gegl_node_get_output_proxy (node, "output");
- if (gimp_item_get_visible (item) &&
- ! (GIMP_IS_LAYER (item) &&
- gimp_layer_is_floating_sel (GIMP_LAYER (item))))
+ if (gimp_item_get_visible (item))
{
gegl_node_connect_to (input, "output",
drawable->private->mode_node, "input");
@@ -784,9 +782,7 @@ gimp_drawable_get_node (GimpItem *item)
input = gegl_node_get_input_proxy (node, "input");
output = gegl_node_get_output_proxy (node, "output");
- if (gimp_item_get_visible (GIMP_ITEM (drawable)) &&
- ! (GIMP_IS_LAYER (drawable) &&
- gimp_layer_is_floating_sel (GIMP_LAYER (drawable))))
+ if (gimp_item_get_visible (GIMP_ITEM (drawable)))
{
gegl_node_connect_to (input, "output",
drawable->private->mode_node, "input");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]