Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenloader / intern / versioning_270.c
index 577c278e0e4f7c11c20b232d8223020d36f73c9e..3fa3f037600367b35d084e8fc0cc6c18ca2ee307 100644 (file)
@@ -1367,6 +1367,13 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
                }
        }
 
+       if (!MAIN_VERSION_ATLEAST(main, 278, 4)) {
+               const float sqrt_3 = (float)M_SQRT3;
+               for (Brush *br = main->brush.first; br; br = br->id.next) {
+                       br->fill_threshold /= sqrt_3;
+               }
+       }
+
        {
                if (!DNA_struct_elem_find(fd->filesdna, "View3DDebug", "char", "background")) {
                        bScreen *screen;