2.5 - Assorted View2D related fixes
[blender-staging.git] / source / blender / blenloader / intern / readfile.c
index 7548c9ca97066a9ed2ff5ccbdacde280fafc844d..6172731b425dc5b639428401eb4127d20a3c28ef 100644 (file)
@@ -5099,9 +5099,11 @@ static void area_add_window_regions(ScrArea *sa, SpaceLink *sl, ListBase *lb)
                                memcpy(&ar->v2d, &soops->v2d, sizeof(View2D));
                                
                                ar->v2d.scroll &= ~V2D_SCROLL_LEFT;
-                               ar->v2d.scroll |= V2D_SCROLL_RIGHT;
+                               ar->v2d.scroll |= (V2D_SCROLL_RIGHT|V2D_SCROLL_HORIZONTAL_O);
                                ar->v2d.align = (V2D_ALIGN_NO_NEG_X|V2D_ALIGN_NO_POS_Y);
                                ar->v2d.keepzoom |= (V2D_LOCKZOOM_X|V2D_LOCKZOOM_Y);
+                               ar->v2d.keeptot = 2;
+                               ar->v2d.keepaspect= 1;
                        }
                                break;
                        case SPACE_TIME: