Issue #1450 - Transform tools don't add an alpha channel in 'None' interpolation

Never add an alpha channel in gimp_layer_real_transform(), it was only
added because our pre-GEGL transform code was shit. This is quite the
opposite of what the bug reporter asked for, but IMO the more correct
fix.

This will NOT go to 2.10 because it changes behavior.
This commit is contained in:
Michael Natterer 2018-06-15 11:33:10 +02:00
parent 541f730f44
commit 756fed0cc2

View file

@ -1654,11 +1654,6 @@ gimp_layer_real_transform (GimpLayer *layer,
GimpTransformResize clip_result, GimpTransformResize clip_result,
GimpProgress *progress) GimpProgress *progress)
{ {
/* FIXME: make interpolated transformations work on layers without alpha */
if (interpolation_type != GIMP_INTERPOLATION_NONE &&
! gimp_drawable_has_alpha (GIMP_DRAWABLE (layer)))
gimp_layer_add_alpha (layer);
GIMP_ITEM_CLASS (parent_class)->transform (GIMP_ITEM (layer), GIMP_ITEM_CLASS (parent_class)->transform (GIMP_ITEM (layer),
context, matrix, direction, context, matrix, direction,
interpolation_type, interpolation_type,