Commit 1c67395c authored by Ell's avatar Ell

app: clip floating selection to layers with no alpha channel

Alawys clip a floating selection to its base layer, if the layer
has no alpha channel.  This avoids arbitrarily filling the extended
regions of the layer with, or compositing the floating selection
against, black color.

This is a temporary solution.  Ideally, we'd automatically add an
alpha channel to the layer as necessary.
parent 783b475b
......@@ -337,7 +337,8 @@ gimp_drawable_sync_fs_filter (GimpDrawable *drawable)
gimp_item_get_offset (GIMP_ITEM (fs), &fs_off_x, &fs_off_y);
if (gimp_item_get_clip (GIMP_ITEM (drawable), GIMP_TRANSFORM_RESIZE_ADJUST) ==
GIMP_TRANSFORM_RESIZE_CLIP)
GIMP_TRANSFORM_RESIZE_CLIP ||
! gimp_drawable_has_alpha (drawable))
{
gegl_node_set (
private->fs_crop_node,
......
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