diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-06-23 14:16:14 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-06-23 18:18:35 +0300 |
commit | 7e53f9fb1af850271d92ddc92a50acbc7aafd48f (patch) | |
tree | 581eae22198567b95d6dc5097d3ee3719c9138f8 /source/blender/editors/space_graph/graph_select.c | |
parent | 58acc184c4d53af53f245505a5952653e75856f3 (diff) |
Dopesheet: Lasso and Circle Select tools work for selecting keyframes
This only works in the Action and Dopesheet modes (which operate on FCurve keyframes).
Support for Grease Pencil and Mask Keyframes though is still pending.
Diffstat (limited to 'source/blender/editors/space_graph/graph_select.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_select.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c index 8c058d23cde..67b960bfa53 100644 --- a/source/blender/editors/space_graph/graph_select.c +++ b/source/blender/editors/space_graph/graph_select.c @@ -415,7 +415,7 @@ static int graphkeys_lassoselect_exec(bContext *C, wmOperator *op) { bAnimContext ac; - KeyframeEdit_LassoData data_lasso; + KeyframeEdit_LassoData data_lasso = {0}; rcti rect; rctf rect_fl; @@ -423,7 +423,6 @@ static int graphkeys_lassoselect_exec(bContext *C, wmOperator *op) bool incl_handles; bool extend; - /* get editor data */ if (ANIM_animdata_get_context(C, &ac) == 0) return OPERATOR_CANCELLED; @@ -501,7 +500,7 @@ static int graph_circle_select_exec(bContext *C, wmOperator *op) const short selectmode = (gesture_mode == GESTURE_MODAL_SELECT) ? SELECT_ADD : SELECT_SUBTRACT; bool incl_handles = false; - KeyframeEdit_CircleData data; + KeyframeEdit_CircleData data = {0}; rctf rect_fl; float x = RNA_int_get(op->ptr, "x"); |