Fix #36225, spacing was halved and set to zero for texture paint brushes that had...
[blender-staging.git] / source / blender / blenloader / intern / readfile.c
index 50273cb33f31a712f5d428560057cd55509bbfcd..3d944300443f27e7b3af1cbd767b9170addb3a1d 100644 (file)
@@ -9487,7 +9487,13 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                }
        }
 
-
+       if (!MAIN_VERSION_ATLEAST(main, 268, 1)) {
+               Brush *brush;
+               for (brush = main->brush.first; brush; brush = brush->id.next) {
+                       brush->spacing = MAX2(1, brush->spacing);
+               }
+       }
+       
        {
                bScreen *sc;
                Object *ob;