Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2013-04-08 23:56:38 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-04-08 23:56:38 +0400
commiteaa577dfc928b5ad9e227c5da1377e3bddfbfcd4 (patch)
tree2a8c8f144917b0cc2612e5e36aba427927a4afd3 /source/blender/blenloader
parent2b2099cd519d2723dd79af2e1d9035c7cbb12022 (diff)
Compatibility and robustness:
* Make masking depend on texture mode only if there's an actual texture present * New stroke system uses diameter to calculate stroke spacing, while old texture painting brushes and system used radius. So divide spacing of brushes in old files to half. Since I expect trunk users to have already adapted this, I do this for an old subversion of blender.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index bd2fbfe7eda..3723fe54cec 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -9266,6 +9266,10 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
Brush *brush;
for (brush = main->brush.first; brush; brush = brush->id.next) {
default_mtex(&brush->mask_mtex);
+
+ if (brush->ob_mode & OB_MODE_TEXTURE_PAINT) {
+ brush->spacing /= 2;
+ }
}
}