Fix #36225, spacing was halved and set to zero for texture paint brushes that had...
authorAntony Riakiotakis <kalast@gmail.com>
Tue, 23 Jul 2013 11:13:39 +0000 (11:13 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Tue, 23 Jul 2013 11:13:39 +0000 (11:13 +0000)
source/blender/blenkernel/BKE_blender.h
source/blender/blenloader/intern/readfile.c

index 0e4289692cc09b2c8a08b0b2c81022cf3c195b9a..a0c2908a646a5408c50ebf89a3c983b09ba9ebe5 100644 (file)
@@ -42,7 +42,7 @@ extern "C" {
  * and keep comment above the defines.
  * Use STRINGIFY() rather than defining with quotes */
 #define BLENDER_VERSION         268
-#define BLENDER_SUBVERSION      0
+#define BLENDER_SUBVERSION      1
 
 /* 262 was the last editmesh release but it has compatibility code for bmesh data */
 #define BLENDER_MINVERSION      262
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;