diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-04-23 04:06:22 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-04-23 04:06:22 +0400 |
commit | 157244b13cf61d5889f5714167c6e5468ae35b15 (patch) | |
tree | e59778ab61ab8bf8823d245e96ed99885ed5729b /source/blender/blenloader | |
parent | 0d14a1414c1c36f0e887c11de137f8b32a788852 (diff) |
Add stencil control for mask overlay. Key combinations are the same as
regular stencil but use Alt as well, so Alt-Rclick is translation, Alt-
clamping to avoid scaling of stencil to zero.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 806ca280789..466c0b6dcb2 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -9318,6 +9318,12 @@ static void do_versions(FileData *fd, Library *lib, Main *main) brush->stencil_pos[0] = 256; brush->stencil_pos[1] = 256; } + if (brush->mask_stencil_dimension[0] == 0) { + brush->mask_stencil_dimension[0] = 256; + brush->mask_stencil_dimension[1] = 256; + brush->mask_stencil_pos[0] = 256; + brush->mask_stencil_pos[1] = 256; + } } /* TIP: to initialize new variables added, use the new function |