Commit e1e41b86 authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

app: allow painting on transparent layers with modes != normal

by using GIMP_LAYER_COMPOSITE_SRC_OVER. Please test.
parent 8bba14ea
......@@ -319,7 +319,7 @@ do_layer_blend (GeglBuffer *src_buffer,
apply_func = gimp_get_layer_mode_function (paint_mode);
blend_space = gimp_layer_mode_get_blend_space (paint_mode);
composite_space = gimp_layer_mode_get_composite_space (paint_mode);
composite_mode = gimp_layer_mode_get_composite_mode (paint_mode);
composite_mode = GIMP_LAYER_COMPOSITE_SRC_OVER;
if (linear)
iterator_format = babl_format ("RGBA float");
......
......@@ -903,7 +903,7 @@ gimp_paint_core_paste (GimpPaintCore *core,
gimp_applicator_set_opacity (core->applicator, image_opacity);
gimp_applicator_set_mode (core->applicator, paint_mode,
GIMP_LAYER_COMPOSITE_AUTO);
GIMP_LAYER_COMPOSITE_SRC_OVER);
/* apply the paint area to the image */
gimp_applicator_blit (core->applicator,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment