diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-08-20 20:00:17 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-08-20 20:00:17 +0400 |
commit | 4df4b17ed65331b39d77c319f98b7114c0f2ead0 (patch) | |
tree | afcdda9a724fc139495c3d55660c394311cda0fa /source/blender/blenkernel/intern/paint.c | |
parent | ff27281f2e235ca5c7b776b390f0deb00799c97a (diff) |
2.5 Paint:
* Weight paint and vertex paint now use the same cursor setup as sculpt
Diffstat (limited to 'source/blender/blenkernel/intern/paint.c')
-rw-r--r-- | source/blender/blenkernel/intern/paint.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index f0893e058fa..7c5b2b82b4b 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -39,6 +39,11 @@ #include <stdlib.h> #include <string.h> +const char PAINT_CURSOR_SCULPT[3] = {255, 100, 100}; +const char PAINT_CURSOR_VERTEX_PAINT[3] = {255, 255, 255}; +const char PAINT_CURSOR_WEIGHT_PAINT[3] = {200, 200, 255}; +const char PAINT_CURSOR_TEXTURE_PAINT[3] = {255, 255, 255}; + Paint *paint_get_active(Scene *sce) { if(sce && sce->basact && sce->basact->object) { @@ -154,7 +159,7 @@ int paint_facesel_test(Object *ob) } -void paint_init(Paint *p, const char *col) +void paint_init(Paint *p, const char col[3]) { Brush *brush; @@ -163,13 +168,7 @@ void paint_init(Paint *p, const char *col) brush_check_exists(&brush, "Brush"); paint_brush_set(p, brush); - if(col) - memcpy(p->paint_cursor_col, col, 3); - else { - p->paint_cursor_col[0] = 255; - p->paint_cursor_col[1] = 255; - p->paint_cursor_col[2] = 255; - } + memcpy(p->paint_cursor_col, col, 3); p->paint_cursor_col[3] = 128; } |