[Bf-blender-cvs] [f66b5edf98c] master: VSE: Use sequencer boundbox for view_all operator
Richard Antalik
noreply at git.blender.org
Thu Aug 1 22:37:35 CEST 2019
Commit: f66b5edf98c98fcf04f99d962647db54f17b79e4
Author: Richard Antalik
Date: Thu Aug 1 12:43:15 2019 -0700
Branches: master
https://developer.blender.org/rBf66b5edf98c98fcf04f99d962647db54f17b79e4
VSE: Use sequencer boundbox for view_all operator
Fix T67279
Fix T59954
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D5368
===================================================================
M source/blender/editors/space_sequencer/sequencer_edit.c
===================================================================
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index bf138e5bc91..ed0303564c6 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -2813,10 +2813,12 @@ void SEQUENCER_OT_meta_separate(wmOperatorType *ot)
static int sequencer_view_all_exec(bContext *C, wmOperator *op)
{
ARegion *ar = CTX_wm_region(C);
- View2D *v2d = UI_view2d_fromcontext(C);
+ rctf box;
+
const int smooth_viewtx = WM_operator_smooth_viewtx_get(op);
- UI_view2d_smooth_view(C, ar, &v2d->tot, smooth_viewtx);
+ boundbox_seq(CTX_data_scene(C), &box);
+ UI_view2d_smooth_view(C, ar, &box, smooth_viewtx);
return OPERATOR_FINISHED;
}
More information about the Bf-blender-cvs
mailing list