app: in GimpDrawableFilter, don't mask-out alpha comonent for alpha-less drawables

In gimp_drawable_filter_sync_affect(), don't mask-out the filter's
alpha component when the drawable doesn't have an alpha channel,
since this is no longer necessary -- we now explicitly convert the
output to the drawable format as part of the graph -- and it
prevents the gimp:mask-components node from becoming a NOP.
This commit is contained in:
Ell
2019-02-16 13:01:18 -05:00
parent 1b900bfa16
commit af2c7d1b33

View File

@ -668,18 +668,9 @@ gimp_drawable_filter_sync_mode (GimpDrawableFilter *filter)
static void
gimp_drawable_filter_sync_affect (GimpDrawableFilter *filter)
{
GimpComponentMask active_mask;
active_mask = gimp_drawable_get_active_mask (filter->drawable);
/* don't let the filter affect the drawable projection's alpha,
* because it can't affect the drawable buffer's alpha either when
* finally merged (see bug #699279)
*/
if (! gimp_drawable_has_alpha (filter->drawable))
active_mask &= ~GIMP_COMPONENT_MASK_ALPHA;
gimp_applicator_set_affect (filter->applicator, active_mask);
gimp_applicator_set_affect (
filter->applicator,
gimp_drawable_get_active_mask (filter->drawable));
}
static void