From 7c739ad5600c2351a329cb686cd81a27c29032d5 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Tue, 31 Oct 2023 11:41:47 +0100 Subject: [PATCH] Fix #114287: Drawing in post-view draw handlers broken Mistake in 4d668e6825. `draw_seq_strips()` would use `UI_view2d_view_orthoSpecial()` to only scale drawing horizontally, but didn't reset the matrix state for normal view-space drawing. Result is that the preview range drawing would be broken, and so were add-ons using the `POST_VIEW` draw callback. Pull Request: https://projects.blender.org/blender/blender/pulls/114285 --- .../blender/editors/space_sequencer/sequencer_timeline_draw.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/space_sequencer/sequencer_timeline_draw.cc b/source/blender/editors/space_sequencer/sequencer_timeline_draw.cc index dd65f3b1508..53b830a1bd5 100644 --- a/source/blender/editors/space_sequencer/sequencer_timeline_draw.cc +++ b/source/blender/editors/space_sequencer/sequencer_timeline_draw.cc @@ -2086,6 +2086,7 @@ void draw_timeline_seq(const bContext *C, ARegion *region) draw_seq_strips(&ctx); sequencer_draw_retiming(C); draw_timeline_markers(&ctx); + UI_view2d_view_ortho(ctx.v2d); ANIM_draw_previewrange(C, ctx.v2d, 1); draw_timeline_gizmos(&ctx); draw_timeline_post_view_callbacks(&ctx);