Fix T99641: Assert hit when splitting video sequencer area horizontally

Don't draw channels region when height is 0.
This commit is contained in:
Richard Antalik 2022-11-04 20:57:23 +01:00
parent bb86007018
commit bba6d28942
Notes: blender-bot 2023-02-14 04:40:22 +01:00
Referenced by issue #102336, Regression: Enabling Dynamic Topology Causes Crash on Plane Mesh
Referenced by issue #102318, Regression: Smoothing a Mesh in Edit Mode Causes Segmentation Fault
Referenced by issue #102311, Regression: Crash when opening a file from a directory that is part of the asset library
Referenced by issue #102292, Regression: Crash when connecting certain sockets in Geometry Nodes 3.4
Referenced by issue #99641, Assert hit when splitting video sequencer area horizontally
1 changed files with 4 additions and 0 deletions

View File

@ -357,6 +357,10 @@ void draw_channels(const bContext *C, ARegion *region)
SeqChannelDrawContext context;
channel_draw_context_init(C, region, &context);
if (round_fl_to_int(context.channel_height) == 0) {
return;
}
UI_view2d_view_ortho(context.v2d);
draw_channel_headers(&context);