From 9bdf3fa5f01b01bf9461a3ba6707d231bbbc5e9e Mon Sep 17 00:00:00 2001 From: Richard Antalik Date: Wed, 17 Nov 2021 02:44:47 +0100 Subject: Fix T91724: Strip height is too limited This change was introduced in 997b5fe45dab, to not display pixelated thumbnails. However when VSE timeline height is made smaller, this limits strip height. Change limit, so one strip can occupy full height of VSE timeline --- source/blender/blenloader/intern/versioning_300.c | 16 ++++++++++++++++ source/blender/editors/space_sequencer/space_sequencer.c | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c index c0c3a8e4d4b..9009eb36585 100644 --- a/source/blender/blenloader/intern/versioning_300.c +++ b/source/blender/blenloader/intern/versioning_300.c @@ -2177,5 +2177,21 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) } } FOREACH_NODETREE_END; + + LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) { + LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { + LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) { + if (sl->spacetype == SPACE_SEQ) { + ListBase *regionbase = (sl == area->spacedata.first) ? &area->regionbase : + &sl->regionbase; + LISTBASE_FOREACH (ARegion *, region, regionbase) { + if (region->regiontype == RGN_TYPE_WINDOW) { + region->v2d.min[1] = 1.0f; + } + } + } + } + } + } } } diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c index fc20739b5e2..4b6c5e29d77 100644 --- a/source/blender/editors/space_sequencer/space_sequencer.c +++ b/source/blender/editors/space_sequencer/space_sequencer.c @@ -184,7 +184,7 @@ static SpaceLink *sequencer_create(const ScrArea *UNUSED(area), const Scene *sce region->v2d.cur = region->v2d.tot; region->v2d.min[0] = 10.0f; - region->v2d.min[1] = 4.0f; + region->v2d.min[1] = 1.0f; region->v2d.max[0] = MAXFRAMEF; region->v2d.max[1] = MAXSEQ; -- cgit v1.2.3