Commit 8a28c72d authored by Thomas Manni's avatar Thomas Manni Committed by Michael Natterer

plug-ins: foggify: fix bad fill parameters

parent 8cfabf7e
......@@ -32,11 +32,11 @@ def foggify(img, layer, name, colour, turbulence, opacity):
type = GRAYA_IMAGE
fog = gimp.Layer(img, name,
layer.width, layer.height, type, opacity, NORMAL_MODE)
fog.fill(TRANSPARENT_FILL)
fog.fill(FILL_TRANSPARENT)
img.insert_layer(fog)
gimp.set_background(colour)
pdb.gimp_edit_fill(fog, BACKGROUND_FILL)
pdb.gimp_edit_fill(fog, FILL_BACKGROUND)
# create a layer mask for the new layer
mask = fog.create_mask(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment