[gimp] app: make blend/composite attributes of color-erase immutable



commit eff87d4fcbc59fe02418b4579a7ed0873b4d5685
Author: Ell <ell_se yahoo com>
Date:   Fri Feb 17 18:11:06 2017 -0500

    app: make blend/composite attributes of color-erase immutable

 app/operations/layer-modes/gimp-layer-modes.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/operations/layer-modes/gimp-layer-modes.c b/app/operations/layer-modes/gimp-layer-modes.c
index 183c142..3ed8bec 100644
--- a/app/operations/layer-modes/gimp-layer-modes.c
+++ b/app/operations/layer-modes/gimp-layer-modes.c
@@ -398,6 +398,9 @@ static const GimpLayerModeInfo layer_mode_infos[] =
 
     .op_name              = "gimp:color-erase",
     .function             = gimp_operation_color_erase_process,
+    .flags                = GIMP_LAYER_MODE_FLAG_BLEND_SPACE_IMMUTABLE     |
+                            GIMP_LAYER_MODE_FLAG_COMPOSITE_SPACE_IMMUTABLE |
+                            GIMP_LAYER_MODE_FLAG_COMPOSITE_MODE_IMMUTABLE,
     .context              = GIMP_LAYER_MODE_CONTEXT_PAINT |
                             GIMP_LAYER_MODE_CONTEXT_FADE,
     .paint_composite_mode = GIMP_LAYER_COMPOSITE_SRC_ATOP,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]