diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-03 18:06:49 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-03 18:06:49 +0300 |
commit | d377f1445a0f30181cb5a39be0da6be3461ed3e2 (patch) | |
tree | 1814202446c04ad11058f75e7c5ef6f7da544918 /source/blender/blenloader/intern | |
parent | 8ead4990d33d7ae4c1ce739ef2776f0159dadffd (diff) |
Fix T47676, take two: also do some 'regular file' versionning (allows to handle users own default startup files, among others...).
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/versioning_270.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c index 1ce9bcabc72..def1eab0eaf 100644 --- a/source/blender/blenloader/intern/versioning_270.c +++ b/source/blender/blenloader/intern/versioning_270.c @@ -1057,4 +1057,15 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main) scene->r.bake.pass_filter = R_BAKE_PASS_FILTER_ALL; } } + + if (!MAIN_VERSION_ATLEAST(main, 277, 1)) { + for (Scene *scene = main->scene.first; scene; scene = scene->id.next) { + ParticleEditSettings *pset = &scene->toolsettings->particle; + for (int a = 0; a < PE_TOT_BRUSH; a++) { + if (pset->brush[a].strength > 1.0f) { + pset->brush[a].strength *= 0.01f; + } + } + } + } } |