[Bf-blender-cvs] [76eecb97cc6] temp-graph-select-changes: Don't change selection of handles when clicking just on key
Julian Eisel
noreply at git.blender.org
Thu Oct 10 18:47:56 CEST 2019
Commit: 76eecb97cc627e1fd346fff4ac305917b5f40904
Author: Julian Eisel
Date: Thu Oct 10 17:42:56 2019 +0200
Branches: temp-graph-select-changes
https://developer.blender.org/rB76eecb97cc627e1fd346fff4ac305917b5f40904
Don't change selection of handles when clicking just on key
===================================================================
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 5f2adfdcc94..c62674f0df1 100644
--- a/source/blender/editors/space_graph/graph_select.c
+++ b/source/blender/editors/space_graph/graph_select.c
@@ -1475,17 +1475,9 @@ static int mouse_graph_keys(bAnimContext *ac,
bezt = nvi->bezt; /* used to check bezt seletion is set */
/* depends on selection mode */
if (select_mode == SELECT_INVERT) {
- /* keyframe - invert select of all */
if (nvi->hpoint == NEAREST_HANDLE_KEY) {
- if (BEZT_ISSEL_ANY(bezt)) {
- bezt->f2 ^= SELECT;
- }
- else {
- BEZT_SEL_ALL(bezt);
- }
+ bezt->f2 ^= SELECT;
}
-
- /* handles - toggle selection of relevant handle */
else if (nvi->hpoint == NEAREST_HANDLE_LEFT) {
/* toggle selection */
bezt->f1 ^= SELECT;
@@ -1496,11 +1488,10 @@ static int mouse_graph_keys(bAnimContext *ac,
}
}
else {
- /* if the keyframe was clicked on, select all verts of given beztriple */
+ /* Select the handle that applied */
if (nvi->hpoint == NEAREST_HANDLE_KEY) {
- BEZT_SEL_ALL(bezt);
+ bezt->f2 |= SELECT;
}
- /* otherwise, select the handle that applied */
else if (nvi->hpoint == NEAREST_HANDLE_LEFT) {
bezt->f1 |= SELECT;
}
More information about the Bf-blender-cvs
mailing list