Page MenuHome

UI: Textual change Texture Paint Opacity

Authored by Jeroen Bakker (jbakker) on Jul 17 2019, 1:53 PM.



Minor textual change to the Texture Paint overlay. Opacity => Stencil Opacity

Diff Detail

rB Blender

Event Timeline

Brecht Van Lommel (brecht) requested changes to this revision.Jul 17 2019, 3:20 PM
Brecht Van Lommel (brecht) added inline comments.

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 revision now requires changes to proceed.Jul 17 2019, 3:20 PM
Jeroen Bakker (jbakker) updated this revision to Diff 16489.EditedJul 18 2019, 8:23 AM

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.

Jeroen Bakker (jbakker) marked an inline comment as done.Jul 18 2019, 8:24 AM
This revision is now accepted and ready to land.Wed, Jul 31, 2:41 PM
This revision was automatically updated to reflect the committed changes.