diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-05 15:02:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-05 15:02:54 +0400 |
commit | 45c1ccd65b279653f3cb0c2394fefb27efa1952d (patch) | |
tree | 2dd636761a3e09cef148e99a4e52c5c19ccddfbe /source/blender/blenloader | |
parent | 8582495c161076f6ee4cfa72afacee8af024b831 (diff) |
fix for dscale which was set to 0,0,0 from files saved between Nov 29 and Dec 4.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index e352e783c24..13e2ed49e6a 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -12642,6 +12642,18 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } } } + /* sigh, this dscale vs dsize version patching was not done right, fix for fix, + * this intentionally checks an exact subversion, also note this was never in a release, + * at some point this could be removed. */ + else if (main->versionfile == 260 && main->subversionfile == 6) + { + Object *ob; + for (ob= main->object.first; ob; ob= ob->id.next) { + if (is_zero_v3(ob->dscale)) { + fill_vn_fl(ob->dscale, 3, 1.0f); + } + } + } /* put compatibility code here until next subversion bump */ { |