[Bf-blender-cvs] [a8ea1ea1b7d] master: Fix: Broken tweak select-transform in Dopesheet

Julian Eisel noreply at git.blender.org
Mon Feb 3 12:02:59 CET 2020


Commit: a8ea1ea1b7d5817bf37387f6804bbaad1adb2cba
Author: Julian Eisel
Date:   Mon Feb 3 11:51:50 2020 +0100
Branches: master
https://developer.blender.org/rBa8ea1ea1b7d5817bf37387f6804bbaad1adb2cba

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.

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

M	source/blender/editors/space_action/action_select.c

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

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 {



More information about the Bf-blender-cvs mailing list