Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2013-03-07 02:54:44 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-03-07 02:54:44 +0400
commit65869589b6bc0caf9a08a10415a18dc563a447cf (patch)
tree3caa53de3471be33d642efe41c5913398bb8711f /source/blender/blenkernel/BKE_paint.h
parent53b7bc8f1f7126600f431e63398a7678e643c8ae (diff)
Support position jittering on new texpaint code using the stroke system.
Diffstat (limited to 'source/blender/blenkernel/BKE_paint.h')
-rw-r--r--source/blender/blenkernel/BKE_paint.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h
index 211b6189fa8..98184bfa65d 100644
--- a/source/blender/blenkernel/BKE_paint.h
+++ b/source/blender/blenkernel/BKE_paint.h
@@ -54,6 +54,16 @@ extern const char PAINT_CURSOR_VERTEX_PAINT[3];
extern const char PAINT_CURSOR_WEIGHT_PAINT[3];
extern const char PAINT_CURSOR_TEXTURE_PAINT[3];
+typedef enum {
+ PAINT_SCULPT,
+ PAINT_VERTEX,
+ PAINT_WEIGHT,
+ PAINT_TEXTURE_PROJECTIVE,
+ PAINT_TEXTURE_2D,
+ PAINT_SCULPT_UV,
+ PAINT_INVALID
+} PaintMode;
+
void BKE_paint_init(struct Paint *p, const char col[3]);
void BKE_paint_free(struct Paint *p);
void BKE_paint_copy(struct Paint *src, struct Paint *tar);
@@ -61,6 +71,7 @@ void BKE_paint_copy(struct Paint *src, struct Paint *tar);
/* TODO, give these BKE_ prefix too */
struct Paint *paint_get_active(struct Scene *sce);
struct Paint *paint_get_active_from_context(const struct bContext *C);
+PaintMode paintmode_get_active_from_context(const struct bContext *C);
struct Brush *paint_brush(struct Paint *paint);
void paint_brush_set(struct Paint *paint, struct Brush *br);