diff options
author | Matt Ebb <matt@mke3.net> | 2006-10-03 04:16:22 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2006-10-03 04:16:22 +0400 |
commit | 815f115338aa960b3bf9451abb20b238d3308dd0 (patch) | |
tree | ee7bfdca3f532055413de4be75f224b37285c7a6 /source | |
parent | 1ace6ec0ef826d5e8d8ce754cb853f24dfc11179 (diff) |
* Previous backwards compat commit to reset curve radius values to 1.0 on old
file was also happening on files made with current CVS (until next release).
Added a simple check to make it only happen on old files where there was no
radius before.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 2c25e1fe71c..ed23113082e 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5605,12 +5605,12 @@ static void do_versions(FileData *fd, Library *lib, Main *main) if (nu) { if(nu->bezt) { for(bezt=nu->bezt, a=0; a<nu->pntsu; a++, bezt++) { - bezt->radius= 1.0; + if (!bezt->radius) bezt->radius= 1.0; } } else if(nu->bp) { for(bp=nu->bp, a=0; a<nu->pntsu*nu->pntsv; a++, bp++) { - bp->radius= 1.0; + if(!bp->radius) bp->radius= 1.0; } } } |