12-12-2022, 10:27 PM
(12-11-2022, 04:55 PM)Ofnuts Wrote: Just replace
Code:
layer.fill(FOREGROUND_FILL)
with:
Code:
layer.lock_alpha=True
pdb.gimp_edit_fill(layer,FILL_FOREGROUND)
So now you bucket-fill with the alpha channel locked, so pixels keep their opacity. layer.fill() always fill the whole layer, it is intended to initialize the layer after creation, not for general painting.
This seems to have done the trick, thanks.