[Bf-blender-cvs] [dc68db427a9] active-fcurve-keyframe: Change set active logic

Hans Goudey noreply at git.blender.org
Thu Jul 16 20:16:21 CEST 2020


Commit: dc68db427a9fd394840694347d9f766338567a2f
Author: Hans Goudey
Date:   Mon May 18 12:36:39 2020 -0400
Branches: active-fcurve-keyframe
https://developer.blender.org/rBdc68db427a9fd394840694347d9f766338567a2f

Change set active logic

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

M	source/blender/editors/space_graph/graph_select.c

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

diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c
index 04d0e2a8092..2caf6313c03 100644
--- a/source/blender/editors/space_graph/graph_select.c
+++ b/source/blender/editors/space_graph/graph_select.c
@@ -1513,7 +1513,7 @@ static int mouse_graph_keys(bAnimContext *ac,
       }
 
       /* Set the curve's active keyframe. */
-      if (BEZT_ISSEL_ANY(bezt)) {
+      if (BEZT_ISSEL_ANY(bezt) && (select_mode == SELECT_ADD || !already_selected)) {
         BLI_assert(nvi->fcu != NULL);
         nvi->fcu->active_key = (int)(bezt - nvi->fcu->bezt);
       }



More information about the Bf-blender-cvs mailing list