Yesterday, 01:04 PM
(This post was last modified: Yesterday, 01:13 PM by programmer_ceds.)
(Yesterday, 11:27 AM)cjel Wrote: ... Perhaps I've found a bug?
Possibly. I've just tried the following lines in the Script-fu console in both V3.0.8 and 3.2.0 rc 2 with the same results - the call of gimp-displays-flush has no effect:
Code:
(gimp-get-images)
(gimp-image-get-selected-drawables 1)
(gimp-drawable-set-pixel 2 1 2 '(0 0 0 0))
(gimp-displays-flush)As a work-around you could add the following:
Code:
(gimp-item-set-visible 2 FALSE)
(gimp-item-set-visible 2 TRUE)Calling (gimp-image-is-dirty 1) after setting the pixel returns a value of 0 (in V3.2.0 rc 2) - so it looks as though this is a bug where the set pixel function isn't setting the dirty flag.

