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:
authorCampbell Barton <ideasman42@gmail.com>2018-08-23 05:56:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-23 05:56:02 +0300
commit3fc755e9388ccb13c8a0953f01163eb6eb1a70be (patch)
tree71a8625ad9dc579c72bb8c93d27efc116abb9de3 /release
parent99e6c413738ca001d501397ecf81081b4d23b347 (diff)
Tool System: Sculpt border hide/mask tools
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index c042c328ae4..7607bdd35e5 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -929,6 +929,30 @@ class _defs_sculpt:
)
)
+ @ToolDef.from_fn
+ def hide_border():
+ return dict(
+ text="Border Hide",
+ icon="none",
+ widget=None,
+ keymap=(
+ ("paint.hide_show", dict(action='HIDE'), dict(type='EVT_TWEAK_A', value='ANY')),
+ ("paint.hide_show", dict(action='SHOW'), dict(type='EVT_TWEAK_A', value='ANY', ctrl=True)),
+ ("paint.hide_show", dict(action='SHOW', area='ALL'), dict(type='SELECTMOUSE', value='PRESS')),
+ ),
+ )
+
+ @ToolDef.from_fn
+ def mask_border():
+ return dict(
+ text="Border Mask",
+ icon="none",
+ widget=None,
+ keymap=(
+ ("view3d.select_border", dict(mode='ADD'), dict(type='EVT_TWEAK_A', value='ANY')),
+ ("view3d.select_border", dict(mode='SUB'), dict(type='EVT_TWEAK_A', value='ANY', ctrl=True)),
+ ),
+ )
class _defs_vertex_paint:
@@ -1637,6 +1661,9 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
],
'SCULPT': [
_defs_sculpt.generate_from_brushes,
+ None,
+ _defs_sculpt.hide_border,
+ _defs_sculpt.mask_border,
],
'PAINT_TEXTURE': [
_defs_texture_paint.generate_from_brushes,