diff options
author | Dalai Felinto <dalai@blender.org> | 2021-09-28 18:55:21 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2021-09-28 18:58:41 +0300 |
commit | e6941651231a4ab9bd416ca01d58e589aadb772c (patch) | |
tree | 5f6fb2e4a7696f70ebefe44dfa6a1ae4a2df596a | |
parent | 6ee2f2da96e1137d64f782801d5616ceb47ebd41 (diff) |
VSE: fix versioning code to the new maximum zoom level (128)
Since we bumped the number of channels to 128, I forgot to doversion the
editors. So new files (new editors) would have this right, but not
existing files.
Fixup to: 8fecc2a8525467ee2fbbaae16ddbbc10b3050d46
-rw-r--r-- | source/blender/blenloader/intern/versioning_300.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c index 26903fff70f..b88978d1683 100644 --- a/source/blender/blenloader/intern/versioning_300.c +++ b/source/blender/blenloader/intern/versioning_300.c @@ -1520,5 +1520,21 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) */ { /* Keep this block, even when empty. */ + + 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.max[1] = MAXSEQ; + } + } + } + } + } + } } } |