Particle edit brush strengths were loaded wrong for old files.

This commit is contained in:
2010-09-14 09:32:43 +00:00
parent 46f25680aa
commit a1ff472e07

View File

@@ -10687,6 +10687,15 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
SEQ_END
}
/* particle brush strength factor was changed from int to float */
for(sce= main->scene.first; sce; sce=sce->id.next) {
ParticleEditSettings *pset= &sce->toolsettings->particle;
int a;
for(a=0; a<PE_TOT_BRUSH; a++)
pset->brush[a].strength /= 100.0;
}
for(ma = main->mat.first; ma; ma=ma->id.next)
if(ma->mode & MA_TRACEBLE)
ma->shade_flag |= MA_APPROX_OCCLUSION;