[gimp] Bug 754297 - Show Layer Mask should not use the layer blend mode
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 754297 - Show Layer Mask should not use the layer blend mode
- Date: Tue, 1 Sep 2015 08:28:12 +0000 (UTC)
commit 216da3b5e2cc3d2a531f1927c3573464cc1a2403
Author: Michael Natterer <mitch gimp org>
Date: Tue Sep 1 10:26:21 2015 +0200
Bug 754297 - Show Layer Mask should not use the layer blend mode
Call gimp_layer_update_mode_node() also when removing a mask, and
change it to only do its magic if there actually is a mask (don't only
look at the "show_mask" boolean).
app/core/gimplayer.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c
index a271a15..d60441c 100644
--- a/app/core/gimplayer.c
+++ b/app/core/gimplayer.c
@@ -490,7 +490,7 @@ gimp_layer_update_mode_node (GimpLayer *layer)
mode_node = gimp_drawable_get_mode_node (GIMP_DRAWABLE (layer));
- if (layer->show_mask)
+ if (layer->mask && layer->show_mask)
{
visible_mode = GIMP_NORMAL_MODE;
linear = TRUE;
@@ -1330,7 +1330,7 @@ gimp_layer_add_mask (GimpLayer *layer,
mode_node, "aux2");
}
- gimp_layer_update_mode_node (layer);
+ gimp_layer_update_mode_node (layer);
}
if (gimp_layer_get_apply_mask (layer) ||
@@ -1648,6 +1648,8 @@ gimp_layer_apply_mask (GimpLayer *layer,
{
gegl_node_disconnect (mode_node, "aux2");
}
+
+ gimp_layer_update_mode_node (layer);
}
/* If applying actually changed the view */
@@ -1793,7 +1795,7 @@ gimp_layer_set_show_mask (GimpLayer *layer,
}
}
- gimp_layer_update_mode_node (layer);
+ gimp_layer_update_mode_node (layer);
}
gimp_drawable_update (GIMP_DRAWABLE (layer),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]