Sculpt: Expand now waits for click before invoking when called from menu
This commit is contained in:
parent
8a6c6a5dc5
commit
0e35d5c095
|
@ -6269,6 +6269,7 @@ def km_sculpt_expand_modal(_params):
|
|||
("CANCEL", {"type": 'ESC', "value": 'PRESS', "any": True}, None),
|
||||
("CANCEL", {"type": 'RIGHTMOUSE', "value": 'PRESS', "any": True}, None),
|
||||
("CONFIRM", {"type": 'LEFTMOUSE', "value": 'PRESS', "any": True}, None),
|
||||
("CONFIRM", {"type": 'LEFTMOUSE', "value": 'RELEASE', "any": True}, None),
|
||||
("INVERT", {"type": 'F', "value": 'PRESS', "any": True}, None),
|
||||
("PRESERVE", {"type": 'E', "value": 'PRESS', "any": True}, None),
|
||||
("GRADIENT", {"type": 'G', "value": 'PRESS', "any": True}, None),
|
||||
|
|
|
@ -2334,7 +2334,7 @@ void SCULPT_OT_expand(wmOperatorType *ot)
|
|||
ot->cancel = sculpt_expand_cancel;
|
||||
ot->poll = SCULPT_mode_poll;
|
||||
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_DEPENDS_ON_CURSOR;
|
||||
|
||||
static EnumPropertyItem prop_sculpt_expand_falloff_type_items[] = {
|
||||
{SCULPT_EXPAND_FALLOFF_GEODESIC, "GEODESIC", 0, "Geodesic", ""},
|
||||
|
|
Loading…
Reference in New Issue