* 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.
This commit is contained in:
Matt Ebb
2006-10-03 00:16:22 +00:00
parent 1ace6ec0ef
commit 815f115338

View File

@@ -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;
}
}
}