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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-10-21 18:40:25 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-10-21 21:51:54 +0300
commit9daf668991b986492c6ec8eccec0a337a8d29340 (patch)
treec841dd474405cd7ee76d1f26957cc77057436333
parentd2f52dccd39ba6fb29c099e35f62559bb28548fa (diff)
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
-rw-r--r--release/scripts/presets/keyconfig/keymap_data/blender_default.py2
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py5
2 files changed, 6 insertions, 1 deletions
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()