Fix T47676, take two: also do some 'regular file' versionning (allows to handle users...
authorBastien Montagne <montagne29@wanadoo.fr>
Thu, 3 Mar 2016 15:06:49 +0000 (16:06 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Thu, 3 Mar 2016 15:06:49 +0000 (16:06 +0100)
source/blender/blenloader/intern/versioning_270.c

index 1ce9bcabc7224be5ce006750e3fd82c9283914df..def1eab0eaf41d0c0f345a6bbc72abd6fa6c9f15 100644 (file)
@@ -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;
+                               }
+                       }
+               }
+       }
 }