[Bf-blender-cvs] [d1fa04680c0] temp-T82588-box-select-invisible-keys: Fix T82588: Box Select selects keyframes hidden by "Only Show Selected"

Sybren A. Stüvel noreply at git.blender.org
Mon Nov 16 18:30:49 CET 2020


Commit: d1fa04680c0a5443e180ba06da9b3b5cf5b1042d
Author: Sybren A. Stüvel
Date:   Mon Nov 16 18:30:04 2020 +0100
Branches: temp-T82588-box-select-invisible-keys
https://developer.blender.org/rBd1fa04680c0a5443e180ba06da9b3b5cf5b1042d

Fix T82588: Box Select selects keyframes hidden by "Only Show Selected"

Select only editable keys on selected curves when "Only Show Selected Curves" is enabled in the Graph Editor's View menu.

This prevents selecting invisible keys with box, circle, and lasso select in the Graph Editor.

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

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 57aaa1fefce..ba684972dd7 100644
--- a/source/blender/editors/space_graph/graph_select.c
+++ b/source/blender/editors/space_graph/graph_select.c
@@ -529,6 +529,9 @@ static void box_select_graphkeys(bAnimContext *ac,
 
   /* filter data */
   filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_CURVE_VISIBLE | ANIMFILTER_NODUPLIS);
+  if (sipo->flag & SIPO_SELCUVERTSONLY) {
+    filter |= ANIMFILTER_FOREDIT | ANIMFILTER_SELEDIT;
+  }
   ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype);
 
   /* get beztriple editing/validation funcs  */



More information about the Bf-blender-cvs mailing list