diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-04-16 19:59:02 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-04-16 19:59:02 +0400 |
commit | c1276960e8714828645899391e924f44d13d1043 (patch) | |
tree | 4782eb302d57cd438255b3bb1038a2d41195c28a /source/blender | |
parent | 51cb077f1600b2394a071117346e9a75b481e71b (diff) |
Fix some names, and move overlay flag to overlay_flags.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/BKE_blender.h | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 3 | ||||
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 12 |
3 files changed, 16 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_blender.h b/source/blender/blenkernel/BKE_blender.h index 3e748550e7b..ce6f77ec472 100644 --- a/source/blender/blenkernel/BKE_blender.h +++ b/source/blender/blenkernel/BKE_blender.h @@ -42,7 +42,7 @@ extern "C" { * and keep comment above the defines. * Use STRINGIFY() rather than defining with quotes */ #define BLENDER_VERSION 266 -#define BLENDER_SUBVERSION 5 +#define BLENDER_SUBVERSION 6 /* 262 was the last editmesh release but it has compatibility code for bmesh data */ #define BLENDER_MINVERSION 262 diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index dd74df2b4ae..dd299be9764 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -111,6 +111,9 @@ static void brush_defaults(Brush *brush) brush->texture_sample_bias = 0; /* value to added to texture samples */ brush->texture_overlay_alpha = 33; + brush->mask_overlay_alpha = 33; + brush->cursor_overlay_alpha = 33; + brush->overlay_flags = 0; /* brush appearance */ diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index f7c384371ae..fdbf2927464 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -9266,6 +9266,18 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } } + if (!MAIN_VERSION_ATLEAST(main, 266, 6)) { + Brush *brush; + #define BRUSH_TEXTURE_OVERLAY (1 << 21) + + for (brush = main->brush.first; brush; brush = brush->id.next) { + brush->overlay_flags = 0; + if (brush->flag & BRUSH_TEXTURE_OVERLAY) + brush->overlay_flags |= (BRUSH_OVERLAY_PRIMARY | BRUSH_OVERLAY_CURSOR); + } + #undef BRUSH_TEXTURE_OVERLAY + } + if (main->versionfile < 267) { //if(!DNA_struct_elem_find(fd->filesdna, "Brush", "int", "stencil_pos")) { Brush *brush; |