[Bf-blender-cvs] [e6941651231] master: VSE: fix versioning code to the new maximum zoom level (128)
Dalai Felinto
noreply at git.blender.org
Tue Sep 28 17:58:46 CEST 2021
Commit: e6941651231a4ab9bd416ca01d58e589aadb772c
Author: Dalai Felinto
Date: Tue Sep 28 17:55:21 2021 +0200
Branches: master
https://developer.blender.org/rBe6941651231a4ab9bd416ca01d58e589aadb772c
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
===================================================================
M source/blender/blenloader/intern/versioning_300.c
===================================================================
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;
+ }
+ }
+ }
+ }
+ }
+ }
}
}
More information about the Bf-blender-cvs
mailing list