diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-09-14 13:32:43 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-09-14 13:32:43 +0400 |
commit | a1ff472e07aaa9bc53c43871a1598b0a282c351c (patch) | |
tree | 40e06486f80b9847578251462b15163e4859d377 /source | |
parent | 46f25680aa2722472a41a5da295f96c1ccfa6a03 (diff) |
Particle edit brush strengths were loaded wrong for old files.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 2fbbbb653b6..d2b1b2d7010 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -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; |