* enable unified paint/sculpt size by default.
authorJason Wilkins <Jason.A.Wilkins@gmail.com>
Tue, 20 Jul 2010 21:55:08 +0000 (21:55 +0000)
committerJason Wilkins <Jason.A.Wilkins@gmail.com>
Tue, 20 Jul 2010 21:55:08 +0000 (21:55 +0000)
Note: I think this will enable paint/sculpt in all files, even when user has turned it off, unless subversionfile is bumped to 6 and the comparison is changed to subversionfile < 6.

I'll leave that to somebody else who knows better when to change the subversionfile.

source/blender/editors/interface/resources.c

index b5f2a59..ff05dc4 100644 (file)
@@ -1531,4 +1531,7 @@ void init_userdef_do_versions(void)
 
        if (U.sculpt_paint_unified_size == 0)
                U.sculpt_paint_unified_size = 35;
+
+       if (G.main->versionfile < 252 || (G.main->versionfile == 252 && G.main->subversionfile < 5))
+               U.sculpt_paint_settings |= SCULPT_PAINT_USE_UNIFIED_SIZE;
 }