Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-08-12 06:50:17 +0300
committerCampbell Barton <campbell@blender.org>2022-08-12 07:24:31 +0300
commit95cc5c6081d1f208028484e02d18881b7ccc6886 (patch)
treeff30d8564ab4e7554192a422eab2ad97be602e55 /release/scripts/presets/keyconfig/keymap_data/blender_default.py
parent6161b8dc63a47982da36738e43d05dfd08aa7d21 (diff)
Fix T96885: Drag Fallback on Tweak is using Move instead
Since [0] (fix for T95591), the tweak tools fallback action used tweak instead of press. This was enabled so tools such as "Measure" & "Add Cube" could use fallback tools (otherwise is wasn't possible to add a new ruler without also selecting for e.g.), however this is of limited use since both tools support dragging anywhere to activate, making them less useful with other selection tools beside tweak (box/lasso for e.g.). Resolve by disabling the fallback option for tools where using the tweak tool to select is undesirable. Selection by clicking with "Measure" & "Add Cube" is still supported as this is also set in the 3D view's key-map. [0]: 0e51defcf42e1cb231d36da9ecc2cc0fbe6ae505
Diffstat (limited to 'release/scripts/presets/keyconfig/keymap_data/blender_default.py')
-rw-r--r--release/scripts/presets/keyconfig/keymap_data/blender_default.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
index d08efc6909b..efc70f22321 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -490,16 +490,13 @@ def _template_items_tool_select(
]
if params.select_mouse == 'LEFTMOUSE':
- # By default use 'PRESS' for immediate select without quick delay.
- # Fallback key-maps 'CLICK' since 'PRESS' events passes through (allowing either click or drag).
- #
- # NOTE: When the active (non-fallback) tool uses a key-map that activates it's primary tool on drag,
- # it's important that this key-map uses click and not press. Otherwise it becomes impossible to use
- # the tool without selecting elements under the cursor.
+ # Use 'PRESS' for immediate select without delay.
+ # Tools that allow dragging anywhere should _NOT_ enable the fallback tool
+ # unless it is expected that the tool should operate on the selection (click-drag to rip for e.g.).
return [
- (operator, {"type": 'LEFTMOUSE', "value": 'CLICK' if fallback else 'PRESS'},
+ (operator, {"type": 'LEFTMOUSE', "value": 'PRESS'},
{"properties": [("deselect_all", True), *operator_props]}),
- (operator, {"type": 'LEFTMOUSE', "value": 'CLICK' if fallback else 'PRESS', "shift": True},
+ (operator, {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True},
{"properties": [("toggle", True), *operator_props]}),
# Fallback key-map must transform as the primary tool is expected