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:
Alx Sa 2024-07-15 21:09:19 +00:00
parent de9b1b5b10
commit ba635d83a7
2 changed files with 4 additions and 12 deletions

View File

@ -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;
} }

View File

@ -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;
} }