ucupumar / ucupaint

Ucupaint is Blender addon to manage texture layers for Eevee and Cycles renderer.
GNU General Public License v3.0
874 stars 31 forks source link

Erase alpha icon feature doesn't work #136

Closed don570 closed 1 week ago

don570 commented 1 week ago

version 129 - linux blender 4.1.1 Erase alpha icon feature doesn't work

When I am using a brush I can change the mode from 'MIX' to 'Erase alpha' at the top of blender window and it works properly. Then I can change back to MIX mode using the menu again.

However when I click the red icon in ucupaint to disable 'Erase alpha' mode it is ignored

ucupumar commented 1 week ago

I just tried the toggle eraser button and it works fine here. To make it clear, can you give a video example of how to reproduce the issue?

don570 commented 1 week ago

I didn't explain clearly. The Toggle Eraser feature works well.

It's the 'Disable Eraser' icon that doesn't seem to be working (or I do not understand it properly) Procedure to explain problem...

  1. Starting with a default cube and no material

  2. launch ucupaint and create solid color layer with a mask.

  3. I check that the mask is working properly i.e white paints the solid color and black erases

  4. I changed from 'Mix' to 'Erase alpha' mode

'Disable Eraser' icon appears in ucupaint panel

  1. Clicking on 'Disable Eraser' icon switches the brush color between white and black but the brush doesn't paint in blender window. So I am confused. What does 'Disable Eraser' do?

  2. If I change back to 'Mix' mode then the brush works again i.e white paints the solid color and black erases


ucupumar commented 1 week ago

I see. Disable eraser button is only shown when you're using erase alpha while painting mask, since it makes sense to only use grayscale brush when painting mask. I'll change the behavior of the button to only show if you actually use the brush created by using toggle eraser rather than manually change the brush blend mode to erase alpha.