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/src/usiblender.c | |
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/src/usiblender.c')
-rw-r--r-- | source/blender/src/usiblender.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c index 3928f736f1a..3b22b84ad99 100644 --- a/source/blender/src/usiblender.c +++ b/source/blender/src/usiblender.c @@ -81,6 +81,7 @@ #include "BKE_mball.h" #include "BKE_node.h" #include "BKE_packedFile.h" +#include "BKE_texture.h" #include "BKE_utildefines.h" #ifdef WITH_VERSE @@ -365,6 +366,8 @@ static void init_userdef_file(void) for(btheme= U.themes.first; btheme; btheme= btheme->next) { SETCOL(btheme->tv3d.editmesh_active, 255, 255, 255, 128); } + if(U.coba_weight.tot==0) + init_colorband(&U.coba_weight, 1); } /* GL Texture Garbage Collection (variable abused above!) */ |