Skip to content

Commit 45bcf66

Browse files
committed
Fix CRITICAL GIMP warnings when calling GEGL operations
1 parent 097696c commit 45bcf66

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wrappers/pypdb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _get_proc_by_name(self, proc_name, proc_class):
100100

101101
@staticmethod
102102
def _gimp_pdb_procedure_exists(proc_name):
103-
return Gimp.get_pdb().procedure_exists(proc_name)
103+
return Gimp.is_canonical_identifier(proc_name) and Gimp.get_pdb().procedure_exists(proc_name)
104104

105105
@staticmethod
106106
def _gegl_operation_exists(proc_name):
@@ -394,7 +394,6 @@ def __call__(self, *args, **kwargs):
394394
drawable_filter.set_blend_mode(blend_mode)
395395
drawable_filter.set_opacity(opacity)
396396
drawable_filter.set_visible(visible)
397-
drawable_filter.update()
398397

399398
config = drawable_filter.get_config()
400399

@@ -425,6 +424,8 @@ def __call__(self, *args, **kwargs):
425424

426425
config.set_property(arg_name, processed_value)
427426

427+
drawable_filter.update()
428+
428429
if merge_filter:
429430
drawable.merge_filter(drawable_filter)
430431

0 commit comments

Comments
 (0)