diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-10-29 08:26:53 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-10-29 08:26:53 +0300 |
commit | 2c5287df0442f1c9cb1a9f234edcc56496229faf (patch) | |
tree | a0c929e229644cf6b026fcf218afab8c79909b64 /source/blender/blenloader/intern | |
parent | 7718b3d642566921c47e23359ce17d33b570f617 (diff) |
Bugfix #7629:
Version patch for Constraints Refactor I was getting called for too many cases. This was noticeable in the way the StretchTo constraint got reset on loading.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 2293fbef0b5..82923ca1aa5 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -6591,7 +6591,9 @@ static void do_versions(FileData *fd, Library *lib, Main *main) Material *ma; /* unless the file was created 2.44.3 but not 2.45, update the constraints */ - if (!(main->versionfile==244 && main->subversionfile==3)) { + if ( !(main->versionfile==244 && main->subversionfile==3) && + ((main->versionfile<245) || (main->versionfile==245 && main->subversionfile==0)) ) + { for (ob = main->object.first; ob; ob= ob->id.next) { ListBase *list; list = &ob->constraints; |