Quoting "Luis A. Florit" <gimpde...@luisflorit.endjunk.com>:

>> I haven't been following this discussion that closely; however, I
>> would point out that the PDB function 'gimp-layer-get-mask' will
>> return "-1" if the layer does not have a mask.
> Yes. I manage to use that in 2.4 (because some strange reason), but
> the method does not work in 2.6. How would you make it work?

(unless (= (car (gimp-layer-get-mask SharpenLayer)) -1)
   (gimp-layer-remove-mask SharpenLayer MASK-APPLY)

Gimp-developer mailing list

Reply via email to