Fix #114282: Extrude to Cursor tool no longer tweaks on drag
Regression in [0] which only ran drag events if the press event passed
through.
Resolve using the same logic as select picking
(see: WM_operator_flag_only_pass_through_on_press).
[0]: 4d0f846b93
This commit is contained in:
@@ -7354,6 +7354,11 @@ def km_3d_view_tool_edit_armature_extrude_to_cursor(params):
|
||||
{"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
|
||||
{"items": [
|
||||
("armature.click_extrude", {"type": params.tool_mouse, "value": 'PRESS', **params.tool_modifier}, None),
|
||||
# Support LMB click-drag for RMB key-map.
|
||||
*(([] if (params.select_mouse == 'LEFTMOUSE') else [
|
||||
("transform.translate", {"type": params.tool_mouse, "value": 'CLICK_DRAG'},
|
||||
{"properties": [("release_confirm", True)]})
|
||||
])),
|
||||
]},
|
||||
)
|
||||
|
||||
@@ -7439,6 +7444,11 @@ def km_3d_view_tool_edit_mesh_extrude_to_cursor(params):
|
||||
{"items": [
|
||||
# No need for `tool_modifier` since this takes all input.
|
||||
("mesh.dupli_extrude_cursor", {"type": params.tool_mouse, "value": 'PRESS'}, None),
|
||||
# Support LMB click-drag for RMB key-map.
|
||||
*(([] if (params.select_mouse == 'LEFTMOUSE') else [
|
||||
("transform.translate", {"type": params.tool_mouse, "value": 'CLICK_DRAG'},
|
||||
{"properties": [("release_confirm", True)]})
|
||||
])),
|
||||
]},
|
||||
)
|
||||
|
||||
@@ -7733,6 +7743,11 @@ def km_3d_view_tool_edit_curve_extrude_to_cursor(params):
|
||||
{"items": [
|
||||
# No need for `tool_modifier` since this takes all input.
|
||||
("curve.vertex_add", {"type": params.tool_mouse, "value": 'PRESS'}, None),
|
||||
# Support LMB click-drag for RMB key-map.
|
||||
*(([] if (params.select_mouse == 'LEFTMOUSE') else [
|
||||
("transform.translate", {"type": params.tool_mouse, "value": 'CLICK_DRAG'},
|
||||
{"properties": [("release_confirm", True)]})
|
||||
])),
|
||||
]},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user