2.5 Paint:
[blender.git] / source / blender / blenkernel / intern / paint.c
index 80016f23d7c5525ef0e985a7bab023995095a4c3..7c5b2b82b4b7663b83390bcc4ed787ea3209bc41 100644 (file)
 #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,14 +159,17 @@ int paint_facesel_test(Object *ob)
 
 }
 
-void paint_init(Paint *p, const char *name)
+void paint_init(Paint *p, const char col[3])
 {
        Brush *brush;
 
        /* If there's no brush, create one */
        brush = paint_brush(p);
-       brush_check_exists(&brush, name);
+       brush_check_exists(&brush, "Brush");
        paint_brush_set(p, brush);
+
+       memcpy(p->paint_cursor_col, col, 3);
+       p->paint_cursor_col[3] = 128;
 }
 
 void free_paint(Paint *paint)