Minor textual change to the Texture Paint overlay. Opacity => Stencil Opacity
Details
Details
- Reviewers
Brecht Van Lommel (brecht) - Maniphest Tasks
- T66968: Texture paint overlay opacity no longer work
- Commits
- rB972c05537d31: Refactor Paint Overlay Opacity Panel
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- T66968 (branched from master)
- Build Status
Buildable 4096 Build 4096: arc lint + arc unit
Event Timeline
| release/scripts/startup/bl_ui/space_view3d.py | ||
|---|---|---|
| 5834–5838 | 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") | |
Comment Actions
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.