From a8ea1ea1b7d5817bf37387f6804bbaad1adb2cba Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Mon, 3 Feb 2020 11:51:50 +0100 Subject: Fix: Broken tweak select-transform in Dopesheet Clicking and dragging (aka tweaking) an unselected item should select it, deselect others and translate. After rB395dfff103e1, it would not deselect others anymore. --- source/blender/editors/space_action/action_select.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/space_action') diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c index 09a0c297d35..095b30aa57b 100644 --- a/source/blender/editors/space_action/action_select.c +++ b/source/blender/editors/space_action/action_select.c @@ -1718,7 +1718,9 @@ static int mouse_action_keys(bAnimContext *ac, /* reset selection mode for next steps */ select_mode = SELECT_ADD; - if (wait_to_deselect_others) { + /* Rather than deselecting others, users may want to drag to box-select (drag from empty space) + * or tweak-translate an already selected item. If these cases may apply, delay deselection. */ + if (wait_to_deselect_others && (!found || is_selected)) { ret_value = OPERATOR_RUNNING_MODAL; } else { -- cgit v1.2.3