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-04-16 19:02:41 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-04-16 19:02:41 +0400
commit53c9507c2878b38176c841c4a2172ea7f543aaba (patch)
tree72ed3397704e272a4a5cc9a60701e21347609b3d /source/blender/blenkernel/BKE_paint.h
parentea0ad013d35984cba06cd8318fd42cc39c74c37f (diff)
Option to hide overlay during a stroke. To enable, press the brush icon
next to the overlay alpha.
Diffstat (limited to 'source/blender/blenkernel/BKE_paint.h')
-rw-r--r--source/blender/blenkernel/BKE_paint.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h
index d4239e3e6fd..fe8dc7cc938 100644
--- a/source/blender/blenkernel/BKE_paint.h
+++ b/source/blender/blenkernel/BKE_paint.h
@@ -68,15 +68,21 @@ typedef enum PaintMode {
} PaintMode;
/* overlay invalidation */
-#define PAINT_INVALID_OVERLAY_TEXTURE_PRIMARY 1
-#define PAINT_INVALID_OVERLAY_TEXTURE_SECONDARY 2
-#define PAINT_INVALID_OVERLAY_CURVE 4
+typedef enum OverlayControlFlags {
+ PAINT_INVALID_OVERLAY_TEXTURE_PRIMARY = 1,
+ PAINT_INVALID_OVERLAY_TEXTURE_SECONDARY = (1 << 2),
+ PAINT_INVALID_OVERLAY_CURVE = (1 << 2),
+ PAINT_OVERLAY_OVERRIDE = (1 << 3)
+} OverlayControlFlags;
void BKE_paint_invalidate_overlay_tex (struct Scene *scene, const struct Tex *tex);
void BKE_paint_invalidate_cursor_overlay (struct Scene *scene, struct CurveMapping *curve);
void BKE_paint_invalidate_overlay_all(void);
-int BKE_paint_get_overlay_flags (void);
+OverlayControlFlags BKE_paint_get_overlay_flags (void);
void BKE_paint_reset_overlay_invalid (void);
+void BKE_paint_set_overlay_override (bool flag);
+bool BKE_paint_get_overlay_override (void);
+
void BKE_paint_init(struct Paint *p, const char col[3]);
void BKE_paint_free(struct Paint *p);