From 2261da2897b96bb3a391e30eabb4c7796bf2e574 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Thu, 22 Oct 2020 16:50:38 -0400 Subject: Fix Unreported: Missing box mask in sculpt There was a weird bug in the API where a value of 0 gave a mask value of 1. I am not sure why this is but the current code works as desirable. This was missed in rB6faa765af8954948de3cec75a2261a5aa139b4e5 --- .../scripts/presets/keyconfig/keymap_data/industry_compatible_data.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py') diff --git a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py index a3a5c853b29..e4ff0177ceb 100644 --- a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py +++ b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py @@ -3365,6 +3365,8 @@ def km_sculpt(params): {"properties": [("mode", 'VALUE'), ("value", 1.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')]}), -- cgit v1.2.3