Minor textual change to the Texture Paint overlay. Opacity => Stencil Opacity
Brecht Van Lommel (brecht)
- Maniphest Tasks
- T66968: Texture paint overlay opacity no longer work
- rB972c05537d31: Refactor Paint Overlay Opacity Panel
For translation to properly detect this string, please restructure code like:
if context.mode == 'PAINT_TEXTURE': col.prop(overlay, "texture_paint_mode_opacity", text="Stencil Opacity") elif context.mode == 'PAINT_VERTEX': col.prop(overlay, "vertex_paint_mode_opacity", text="Opacity") elif context.mode == 'PAINT_WEIGHT': col.prop(overlay, "weight_paint_mode_opacity", text="Opacity")
This patch now introduces an overlay Panel per Paint mode.
It started out as a minor textural change, but by solving one issue and
reviewing the code that was left over I came to the conclusion that we
should add a panel per paint mode.
Eventually we could introduce a Mixin for some common attributes and draw initialization, but I think that makes the code less readable in this case.