diff options
author | Ton Roosendaal <ton@blender.org> | 2007-10-31 16:56:07 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-10-31 16:56:07 +0300 |
commit | 10680b34f231a6907b65407bd27e146f61b2b2e0 (patch) | |
tree | 9225a86bb255149d94832ead0801b4e0d0bad15f /source/blender/makesdna | |
parent | 2ae5da3fc287874746967ecf988f744dc56ebfbc (diff) |
New feature:
Weightpaint drawing now allows to define your own range of colors;
using a ColorBand, available in the User settings.
Log:
http://www.blender.org/development/current-projects/changes-since-244/animation-features/
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_texture_types.h | 1 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_texture_types.h b/source/blender/makesdna/DNA_texture_types.h index 794d818d8fe..cf51990c9bf 100644 --- a/source/blender/makesdna/DNA_texture_types.h +++ b/source/blender/makesdna/DNA_texture_types.h @@ -107,6 +107,7 @@ typedef struct CBData { } CBData; /* 32 = MAXCOLORBAND */ +/* note that this has to remain a single struct, for UserDef */ typedef struct ColorBand { short flag, tot, cur, ipotype; CBData data[32]; diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 07168e004e4..1ce6f151db6 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -36,8 +36,10 @@ #define DNA_USERDEF_TYPES_H #include "DNA_listBase.h" +#include "DNA_texture_types.h" /* themes; defines in BIF_resource.h */ +struct ColorBand; // global, button colors @@ -184,6 +186,7 @@ typedef struct UserDef { char verseuser[160]; float glalphaclip, pad; + struct ColorBand coba_weight; /* from texture.h */ } UserDef; extern UserDef U; /* from usiblender.c !!!! */ @@ -208,6 +211,7 @@ extern UserDef U; /* from usiblender.c !!!! */ #define USER_LMOUSESELECT (1 << 14) #define USER_FILECOMPRESS (1 << 15) #define USER_SAVE_PREVIEWS (1 << 16) +#define USER_CUSTOM_RANGE (1 << 17) /* viewzom */ #define USER_ZOOM_CONT 0 |