diff options
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index a4038f29c3b..097c654de51 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5073,12 +5073,26 @@ static void do_versions_windowmanager_2_50(bScreen *screen) /* if active spacetype has view2d data, copy that over to main region */ switch(sa->spacetype) { case SPACE_OOPS: - memcpy(&ar->v2d, &((SpaceOops *)sa->spacedata.first)->v2d, sizeof(View2D)); + { + SpaceOops *soops= sa->spacedata.first; + + memcpy(&ar->v2d, &soops->v2d, sizeof(View2D)); + ar->v2d.scroll &= ~L_SCROLL; + ar->v2d.scroll |= R_SCROLL; + } break; case SPACE_TIME: - memcpy(&ar->v2d, &((SpaceTime *)sa->spacedata.first)->v2d, sizeof(View2D)); + { + SpaceTime *stime= sa->spacedata.first; + memcpy(&ar->v2d, &stime->v2d, sizeof(View2D)); + + ar->v2d.scroll |= (B_SCROLL|BGRID_SCROLL); + ar->v2d.keepofs |= V2D_LOCKOFS_Y; + } break; //case SPACE_XXX: // FIXME... add other ones + // memcpy(&ar->v2d, &((SpaceXxx *)sa->spacedata.first)->v2d, sizeof(View2D)); + // break; } } } |