[Bf-blender-cvs] [9daf668991b] blender-v2.91-release: Fix T81926: Sculpt: Box Mask operator (from menu and shortcut) does nothing
Philipp Oeser
noreply at git.blender.org
Wed Oct 21 21:05:17 CEST 2020
Commit: 9daf668991b986492c6ec8eccec0a337a8d29340
Author: Philipp Oeser
Date: Wed Oct 21 17:40:25 2020 +0200
Branches: blender-v2.91-release
https://developer.blender.org/rB9daf668991b986492c6ec8eccec0a337a8d29340
Fix T81926: Sculpt: Box Mask operator (from menu and shortcut) does
nothing
Caused by rB6faa765af895.
Since above commit, we have to use paint.mask_box_gesture instead now.
Maniphest Tasks: T81926
Differential Revision: https://developer.blender.org/D9300
===================================================================
M release/scripts/presets/keyconfig/keymap_data/blender_default.py
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
index 64f92e20d5d..7cf687cbaa2 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -4385,6 +4385,8 @@ def km_sculpt(params):
{"properties": [("mode", 'VALUE'), ("value", 0.0)]}),
("paint.mask_flood_fill", {"type": 'I', "value": 'PRESS', "ctrl": True},
{"properties": [("mode", 'INVERT')]}),
+ ("paint.mask_box_gesture", {"type": 'B', "value": 'PRESS'},
+ {"properties": [("mode", 'VALUE'), ("value", 0.0)]}),
("paint.mask_lasso_gesture", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True, "ctrl": True}, None),
("wm.context_toggle", {"type": 'M', "value": 'PRESS', "ctrl": True},
{"properties": [("data_path", 'scene.tool_settings.sculpt.show_mask')]}),
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index e566047734a..07ccdfa8416 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3001,7 +3001,10 @@ class VIEW3D_MT_mask(Menu):
props.mode = 'VALUE'
props.value = 0
- props = layout.operator("view3d.select_box", text="Box Mask")
+ props = layout.operator("paint.mask_box_gesture", text="Box Mask")
+ props.mode = 'VALUE'
+ props.value = 0
+
props = layout.operator("paint.mask_lasso_gesture", text="Lasso Mask")
layout.separator()
More information about the Bf-blender-cvs
mailing list