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
This commit is contained in:
parent
d2f52dccd3
commit
9daf668991
Notes:
blender-bot
2023-02-14 00:44:02 +01:00
Referenced by issue #81926, Sculpt: Box Mask operator (from menu and shortcut) does nothing
|
@ -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')]}),
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue