plug-ins: make GimpUi global when imported from a local scope.
This fixes Spyro Plus not running interactively after commit a7f02d4ee1.
Note that this seems to be the only plug-in which got broken by this
commit AFAICS.
This commit is contained in:
parent
68b231cdf8
commit
3b9b300252
1 changed files with 1 additions and 0 deletions
|
|
@ -2358,6 +2358,7 @@ class SpyrogimpPlusPlugin(Gimp.PlugIn):
|
|||
|
||||
elif run_mode == Gimp.RunMode.INTERACTIVE:
|
||||
gi.require_version('GimpUi', '3.0')
|
||||
global GimpUi
|
||||
from gi.repository import GimpUi
|
||||
|
||||
Gegl.init (None)
|
||||
|
|
|
|||
Loading…
Reference in a new issue