[gimp] plug-ins: run gimp_displays_flush() in foggify.



commit 02cb754b4a259b8f4ed090543cc6ed138b7113b4
Author: Jehan <jehan girinstud io>
Date:   Sun Oct 18 00:41:22 2020 +0200

    plug-ins: run gimp_displays_flush() in foggify.
    
    Without this call, the display is not properly updated and does not show
    the newly added fog layer.

 plug-ins/python/foggify.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/plug-ins/python/foggify.py b/plug-ins/python/foggify.py
index 7f26a11c66..0fdd146c6b 100755
--- a/plug-ins/python/foggify.py
+++ b/plug-ins/python/foggify.py
@@ -69,6 +69,7 @@ def foggify(procedure, run_mode, image, drawable, args, data):
     # apply the clouds to the layer
     fog.remove_mask(Gimp.MaskApplyMode.APPLY)
     fog.set_visible(True)
+    Gimp.displays_flush()
 
     image.undo_group_end()
     Gimp.context_pop()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]