mirror of https://github.com/GNOME/gimp.git
pdb: Remove item_is_attached restriction from NDE filters
As of fcdddad2
, the requirement for layers
to be attached before NDE filters can be
applied has been removed on app/core.
This patch removes the restriction from
the PDB call for filters as well.
This commit is contained in:
parent
de9b1b5b10
commit
ba635d83a7
|
@ -613,12 +613,8 @@ drawable_merge_filters_invoker (GimpProcedure *procedure,
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
if (gimp_pdb_item_is_attached (GIMP_ITEM (drawable), NULL,
|
if (gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
|
||||||
GIMP_PDB_ITEM_CONTENT, error) &&
|
gimp_drawable_merge_filters (drawable);
|
||||||
gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
|
|
||||||
{
|
|
||||||
gimp_drawable_merge_filters (drawable);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,12 +130,8 @@ HELP
|
||||||
headers => [ qw("core/gimpdrawable-filters.h") ],
|
headers => [ qw("core/gimpdrawable-filters.h") ],
|
||||||
code => <<'CODE'
|
code => <<'CODE'
|
||||||
{
|
{
|
||||||
if (gimp_pdb_item_is_attached (GIMP_ITEM (drawable), NULL,
|
if (gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
|
||||||
GIMP_PDB_ITEM_CONTENT, error) &&
|
gimp_drawable_merge_filters (drawable);
|
||||||
gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
|
|
||||||
{
|
|
||||||
gimp_drawable_merge_filters (drawable);
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
success = FALSE;
|
success = FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue