[Bf-blender-cvs] [49890a8] gooseberry: Smaller strips not working for files with sequencer
Antony Riakiotakis
noreply at git.blender.org
Fri Apr 3 14:13:55 CEST 2015
Commit: 49890a811995c756573b3f00b3438f47d4abaffe
Author: Antony Riakiotakis
Date: Fri Apr 3 14:13:41 2015 +0200
Branches: gooseberry
https://developer.blender.org/rB49890a811995c756573b3f00b3438f47d4abaffe
Smaller strips not working for files with sequencer
===================================================================
M source/blender/blenloader/intern/versioning_270.c
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c
index 206b498..2fb6d29 100644
--- a/source/blender/blenloader/intern/versioning_270.c
+++ b/source/blender/blenloader/intern/versioning_270.c
@@ -867,4 +867,27 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
#undef SEQ_USE_PROXY_CUSTOM_DIR
#undef SEQ_USE_PROXY_CUSTOM_FILE
}
+
+ {
+ bScreen *scr;
+ ScrArea *sa;
+ SpaceLink *sl;
+ ARegion *ar;
+ /* Make sure sequencer preview area limits zoom */
+ for (scr = main->screen.first; scr; scr = scr->id.next) {
+ for (sa = scr->areabase.first; sa; sa = sa->next) {
+ for (sl = sa->spacedata.first; sl; sl = sl->next) {
+ if (sl->spacetype == SPACE_SEQ) {
+ ListBase *lb = (sl == sa->spacedata.first) ? &sa->regionbase : &sl->regionbase;
+
+ for (ar = lb->first; ar; ar = ar->next) {
+ if (ar->regiontype == RGN_TYPE_WINDOW) {
+ ar->v2d.max[1] = MAXSEQ * 4;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
}
More information about the Bf-blender-cvs
mailing list