diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-04-23 04:32:51 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-04-23 04:32:51 +0400 |
commit | 51010f50351a5115122dc64e02a5a9b2c76c4edb (patch) | |
tree | 4a6fab70dd88d012f14ccf003a7c7aaef4e42e52 /source/blender/blenkernel/BKE_paint.h | |
parent | 157244b13cf61d5889f5714167c6e5468ae35b15 (diff) |
Allow hiding separate hiding of overlays on stroke.
Diffstat (limited to 'source/blender/blenkernel/BKE_paint.h')
-rw-r--r-- | source/blender/blenkernel/BKE_paint.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h index c6226180958..a8e61fc09b9 100644 --- a/source/blender/blenkernel/BKE_paint.h +++ b/source/blender/blenkernel/BKE_paint.h @@ -52,6 +52,8 @@ struct Tex; struct ImagePool; struct UnifiedPaintSettings; +enum OverlayFlags; + extern const char PAINT_CURSOR_SCULPT[3]; extern const char PAINT_CURSOR_VERTEX_PAINT[3]; extern const char PAINT_CURSOR_WEIGHT_PAINT[3]; @@ -72,17 +74,21 @@ typedef enum OverlayControlFlags { PAINT_INVALID_OVERLAY_TEXTURE_PRIMARY = 1, PAINT_INVALID_OVERLAY_TEXTURE_SECONDARY = (1 << 2), PAINT_INVALID_OVERLAY_CURVE = (1 << 3), - PAINT_OVERLAY_OVERRIDE = (1 << 4) + PAINT_OVERLAY_OVERRIDE_CURSOR = (1 << 4), + PAINT_OVERLAY_OVERRIDE_PRIMARY = (1 << 5), + PAINT_OVERLAY_OVERRIDE_SECONDARY = (1 << 6) } OverlayControlFlags; +#define PAINT_OVERRIDE_MASK (PAINT_OVERLAY_OVERRIDE_SECONDARY | \ + PAINT_OVERLAY_OVERRIDE_PRIMARY | \ + PAINT_OVERLAY_OVERRIDE_CURSOR) + 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); OverlayControlFlags BKE_paint_get_overlay_flags(void); void BKE_paint_reset_overlay_invalid(OverlayControlFlags flag); -void BKE_paint_set_overlay_override(bool flag); -bool BKE_paint_get_overlay_override(void); - +void BKE_paint_set_overlay_override(enum OverlayFlags flag); void BKE_paint_init(struct Paint *p, const char col[3]); void BKE_paint_free(struct Paint *p); |