From 368ae01c8656d02286de540433b1caa61e14c01e Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Thu, 5 Apr 2012 13:59:16 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/core/gimpdrawable.c b/app/core/gimpdrawable.c index e1b225530f..e3d7599269 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");