diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-05-19 12:44:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-05-19 12:44:38 +0400 |
commit | 9a1d586cf98bf7b21546f2c5bca6331c72c329e4 (patch) | |
tree | 6c99a6eb76f5fd2d16bf680b47e376b8ef9e0f50 /source | |
parent | b7a7859eb0c87b17852b3e21a10d20f07d29aee1 (diff) |
fix for possible un-initialized variable
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index 164ca6c21b0..9deb0ba4a0a 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -1650,10 +1650,10 @@ static int sequencer_cut_invoke(bContext *C, wmOperator *op, wmEvent *event) Scene *scene = CTX_data_scene(C); ARegion *ar= CTX_wm_region(C); View2D *v2d= UI_view2d_fromcontext(C); - - int cut_side, cut_frame; - - cut_frame= CFRA; + + int cut_side= SEQ_SIDE_BOTH; + int cut_frame= CFRA; + if (ED_operator_sequencer_active(C) && v2d) cut_side= mouse_frame_side(v2d, event->x - ar->winrct.xmin, cut_frame); |