Revert "pdb: make channel mixer compat function use mono-mixer for monochrome case"

This reverts commit fc8a2185a5 because
it only changed the generated file.
This commit is contained in:
Michael Natterer 2014-12-10 19:29:46 +01:00
parent fc8a2185a5
commit 221db7ac94
1 changed files with 14 additions and 27 deletions

View File

@ -635,33 +635,20 @@ plug_in_colors_channel_mixer_invoker (GimpProcedure *procedure,
GIMP_PDB_ITEM_CONTENT, error) &&
gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
{
GeglNode *node = NULL;
if ((gboolean) monochrome)
{
node =
gegl_node_new_child (NULL,
"operation", "gegl:mono-mixer",
"red", (gdouble) rr_gain,
"green", (gdouble) rg_gain,
"blue", (gdouble) rb_gain,
NULL);
}
else
{
node =
gegl_node_new_child (NULL,
"operation", "gegl:channel-mixer",
"rr-gain", (gdouble) rr_gain,
"rg-gain", (gdouble) rg_gain,
"rb-gain", (gdouble) rb_gain,
"gr-gain", (gdouble) gr_gain,
"gg-gain", (gdouble) gg_gain,
"gb-gain", (gdouble) gb_gain,
"br-gain", (gdouble) br_gain,
"bg-gain", (gdouble) bg_gain,
"bb-gain", (gdouble) bb_gain,
NULL);
}
GeglNode *node =
gegl_node_new_child (NULL,
"operation", "gegl:channel-mixer",
"monochrome", (gboolean) monochrome,
"rr-gain", (gdouble) rr_gain,
"rg-gain", (gdouble) rg_gain,
"rb-gain", (gdouble) rb_gain,
"gr-gain", (gdouble) gr_gain,
"gg-gain", (gdouble) gg_gain,
"gb-gain", (gdouble) gb_gain,
"br-gain", (gdouble) br_gain,
"bg-gain", (gdouble) bg_gain,
"bb-gain", (gdouble) bb_gain,
NULL);
gimp_drawable_apply_operation (drawable, progress,
C_("undo-type", "Channel Mixer"),