Fix T90592: Incorrect scrollbar range with backdrop
`v2d->tot` rect was set for backdrop drawing. Set range before drawing scrollbars. Reviewed By: Severin Differential Revision: https://developer.blender.org/D13099
This commit is contained in:
parent
7e148c45c8
commit
a040d2a93a
Notes:
blender-bot
2023-02-13 17:56:57 +01:00
Referenced by issue #93866, Blender crashes when bevel edge(CTRL + B, not modifier) + Shade Smooth then press CTRL + Z two more times Referenced by issue #93557, [Blender 3.0] Line art is Flickering Referenced by issue #93454, blender 3.0 Line art rendering is very slow. Referenced by issue #90592, VSE: Using Preview as Backdrop will make the vertical scrollbar use insane values
|
@ -2721,8 +2721,6 @@ void draw_timeline_seq(const bContext *C, ARegion *region)
|
|||
}
|
||||
|
||||
UI_view2d_view_ortho(v2d);
|
||||
/* Get timeline bound-box, needed for the scroll-bars. */
|
||||
SEQ_timeline_boundbox(scene, SEQ_active_seqbase_get(ed), &v2d->tot);
|
||||
draw_seq_backdrop(v2d);
|
||||
if ((sseq->flag & SEQ_SHOW_OVERLAY) && (sseq->timeline_overlay.flag & SEQ_TIMELINE_SHOW_GRID)) {
|
||||
U.v2d_min_gridsize *= 3;
|
||||
|
@ -2806,5 +2804,8 @@ void draw_timeline_seq_display(const bContext *C, ARegion *region)
|
|||
}
|
||||
|
||||
ED_time_scrub_draw_current_frame(region, scene, !(sseq->flag & SEQ_DRAWFRAMES));
|
||||
|
||||
const ListBase *seqbase = SEQ_active_seqbase_get(SEQ_editing_get(scene));
|
||||
SEQ_timeline_boundbox(scene, seqbase, &v2d->tot);
|
||||
UI_view2d_scrollers_draw(v2d, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue