[Bf-blender-cvs] [0e35d5c0957] master: Sculpt: Expand now waits for click before invoking when called from menu

Joseph Eagar noreply at git.blender.org
Fri Jan 20 02:50:38 CET 2023


Commit: 0e35d5c0957e962792beb103bb3f59ceacdf0f0b
Author: Joseph Eagar
Date:   Thu Jan 19 17:49:53 2023 -0800
Branches: master
https://developer.blender.org/rB0e35d5c0957e962792beb103bb3f59ceacdf0f0b

Sculpt: Expand now waits for click before invoking when called from menu

===================================================================

M	release/scripts/presets/keyconfig/keymap_data/blender_default.py
M	source/blender/editors/sculpt_paint/sculpt_expand.c

===================================================================

diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
index 19a93e0882a..19093e51ec5 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -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),
diff --git a/source/blender/editors/sculpt_paint/sculpt_expand.c b/source/blender/editors/sculpt_paint/sculpt_expand.c
index b71f52acbdb..069f943dc41 100644
--- a/source/blender/editors/sculpt_paint/sculpt_expand.c
+++ b/source/blender/editors/sculpt_paint/sculpt_expand.c
@@ -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", ""},



More information about the Bf-blender-cvs mailing list