[gimp/goat-invasion: 424/526] app: don't special case the FS wrt its visibility in the layer stack



commit 79db40798069ea4fa34fa3c1fe5d6a435d0e9c43
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]