Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2016-06-23 14:16:14 +0300
committerJoshua Leung <aligorith@gmail.com>2016-06-23 18:18:35 +0300
commit7e53f9fb1af850271d92ddc92a50acbc7aafd48f (patch)
tree581eae22198567b95d6dc5097d3ee3719c9138f8 /source/blender/editors/space_graph
parent58acc184c4d53af53f245505a5952653e75856f3 (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')
-rw-r--r--source/blender/editors/space_graph/graph_select.c5
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");