Fix #114287: Drawing in post-view draw handlers broken #114285

Merged
Julian Eisel merged 1 commits from JulianEisel/blender:temp-fix-vse-draw-matrix into blender-v4.0-release 2023-10-31 11:41:58 +01:00

1 Commits

Author SHA1 Message Date
Julian Eisel daeb5a750a Fix VSE preview range and post-pixel drawing using wrong scaling
buildbot/vexp-code-patch-coordinator Build done. Details
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.

Note that such matrix state management should probably happen in
`draw_timeline_seq()` directly so it's clear what the current state is.
Otherwise state management is hidden in nested function calls and hard
to track.
2023-10-30 19:29:42 +01:00