Page MenuHome

Fill brush in texture paint ignores alpha layer
Closed, ResolvedPublic

Description

System Information
Windows 10 64-bit
NVIDIA GeForce GTX 970

Blender Version
Broken: v2.79
Worked: Has not ever worked to my knowledge.

Short description of error
If using the fill bucket on an image with transparency, transparent pixels will be filled in if connected to a not-transparent pixel of similar color that is being filled.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps
Use the Fill tool in the UV/Image Editor to attempt to make the black ring in the packed image Circle.png a different color.

Event Timeline

Hm, while this is indeed a little unexpected, it might be more of a feature request [than a real bug]

from the manual:

Fill can be used to fill large areas of the image with the brush color. The tool fills adjacent pixels that have a color value similar to the pixel you clicked on.

so no promise here that it will respect alpha.

@Brecht Van Lommel (brecht): do you think we should keeps this as TODO?

I would consider this a bug, also because it means the behavior for float (premultiplied) and byte (straight) images is inconsistent. The fix is simple though.