Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2019-04-20 12:58:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-20 13:03:57 +0300
commitf2792e91f034ed01469aa025503a4352a1e4455c (patch)
treef2278ce2ba38ee1cb74790386285a97ccb6e6cf6 /release/scripts
parent08f4cdebe40a5ad5f45f37a07bf0f64c17cecb34 (diff)
3D View: add opacity for sculpt mask display
This matches vertex/texture paint opacity options. Useful because 0.75 is sometimes too dark to see the surface shading. Resolves T63746
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index f572362b02b..bb56946e154 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -5572,8 +5572,14 @@ class VIEW3D_PT_overlay_sculpt(Panel):
tool_settings = context.tool_settings
sculpt = tool_settings.sculpt
+ view = context.space_data
+ overlay = view.overlay
+
layout.prop(sculpt, "show_diffuse_color")
layout.prop(sculpt, "show_mask")
+ row = layout.row()
+ row.active = sculpt.show_mask
+ row.prop(overlay, "sculpt_mode_mask_opacity", text="Opacity")
class VIEW3D_PT_overlay_pose(Panel):