diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-07-27 13:55:40 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-07-27 13:55:57 +0300 |
commit | ba146899c8ff40f61819265082781ef4048c631f (patch) | |
tree | 35c7b73898119383d6e52052033b2e73ffce8267 /source/blender/blenloader/intern | |
parent | e355d557f83b7925cdee3d05a14849adb19a259a (diff) |
Image painting 2D:
Deprecate wrap (BRUSH_TORUS) option, we now have paint flags for tiling
and we can reuse those. Also allows seperate tiling in X/Y
direction for 2D painting now.
Only one tiling is allowed for now.
Options can be found in new "Tiling" panel under the tools tab.
For version patching, we just turn off brush wrapping,
to allow reuse of the flag in the future.
New option is paint mode wide instead of per brush so
a brush having the old wrap option will not enable it
for the whole mode in the version patch.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/versioning_270.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c index 6ab655e9b45..1e309f59fba 100644 --- a/source/blender/blenloader/intern/versioning_270.c +++ b/source/blender/blenloader/intern/versioning_270.c @@ -842,4 +842,13 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main) } } } + + if (!MAIN_VERSION_ATLEAST(main, 275, 3)) { + Brush *br; +#define BRUSH_TORUS (1 << 1) + for (br = main->brush.first; br; br = br->id.next) { + br->flag &= ~BRUSH_TORUS; + } +#undef BRUSH_TORUS + } } |