diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-28 14:08:56 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-28 14:08:56 +0300 |
commit | 3b7d1afbd88c1774d4c4ccb09d8cbfeaf4c7ff28 (patch) | |
tree | 755fabe78c4cad265c73454fb0f30dbd2e849c70 /source/blender/blenloader | |
parent | f7a29be3b856b1d253a4aae697aed4c79eaa29bb (diff) |
2.5 - Version patch for reading old .blend files (for some animsys2 changes) was being done for the wrong sub-version.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 9de56801dea..9649a22ddb5 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5124,6 +5124,7 @@ static void area_add_window_regions(ScrArea *sa, SpaceLink *sl, ListBase *lb) ar->regiontype= RGN_TYPE_CHANNELS; ar->alignment= RGN_ALIGN_LEFT; ar->v2d.scroll= V2D_SCROLL_BOTTOM; + ar->v2d.flag = V2D_VIEWSYNC_AREA_VERTICAL; break; } } @@ -8299,14 +8300,6 @@ static void do_versions(FileData *fd, Library *lib, Main *main) if (main->versionfile < 248 || (main->versionfile == 248 && main->subversionfile < 2)) { Scene *sce; - Ipo *ipo; - IpoCurve *icu; - - /* fix IPO-curves to work with new interpolation options */ - for (ipo=main->ipo.first; ipo; ipo= ipo->id.next) { - for (icu= ipo->curve.first; icu; icu= icu->next) - set_interpolation_ipocurve(icu, icu->ipo); - } /* Note, these will need to be added for painting */ for (sce= main->scene.first; sce; sce= sce->id.next) { @@ -8316,6 +8309,14 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } if (main->versionfile < 248 || (main->versionfile == 248 && main->subversionfile < 3)) { bScreen *sc; + Ipo *ipo; + IpoCurve *icu; + + /* fix IPO-curves to work with new interpolation options */ + for (ipo=main->ipo.first; ipo; ipo= ipo->id.next) { + for (icu= ipo->curve.first; icu; icu= icu->next) + set_interpolation_ipocurve(icu, icu->ipo); + } /* adjust default settings for Animation Editors */ for (sc= main->screen.first; sc; sc= sc->id.next) { |