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/intern/brush.c
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/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index 053c5ca9eed..dd74df2b4ae 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -274,6 +274,11 @@ void BKE_brush_debug_print_state(Brush *br)
else if (!(br->flag & _f) && (def.flag & _f)) \
printf("br->flag &= ~" #_f ";\n")
+#define BR_TEST_FLAG_OVERLAY(_f) \
+ if ((br->overlay_flags & _f) && !(def.overlay_flags & _f)) \
+ printf("br->overlay_flags |= " #_f ";\n"); \
+ else if (!(br->overlay_flags & _f) && (def.overlay_flags & _f)) \
+ printf("br->overlay_flags &= ~" #_f ";\n")
/* print out any non-default brush state */
BR_TEST(normal_weight, f);
@@ -301,7 +306,6 @@ void BKE_brush_debug_print_state(Brush *br)
BR_TEST_FLAG(BRUSH_SPACE_ATTEN);
BR_TEST_FLAG(BRUSH_ADAPTIVE_SPACE);
BR_TEST_FLAG(BRUSH_LOCK_SIZE);
- BR_TEST_FLAG(BRUSH_TEXTURE_OVERLAY);
BR_TEST_FLAG(BRUSH_EDGE_TO_EDGE);
BR_TEST_FLAG(BRUSH_RESTORE_MESH);
BR_TEST_FLAG(BRUSH_INVERSE_SMOOTH_PRESSURE);
@@ -310,6 +314,11 @@ void BKE_brush_debug_print_state(Brush *br)
BR_TEST_FLAG(BRUSH_FRONTFACE);
BR_TEST_FLAG(BRUSH_CUSTOM_ICON);
+ BR_TEST_FLAG_OVERLAY(BRUSH_OVERLAY_CURSOR);
+ BR_TEST_FLAG_OVERLAY(BRUSH_OVERLAY_PRIMARY);
+ BR_TEST_FLAG_OVERLAY(BRUSH_OVERLAY_SECONDARY);
+ BR_TEST_FLAG_OVERLAY(BRUSH_OVERLAY_OVERRIDE_ON_STROKE);
+
BR_TEST(jitter, f);
BR_TEST(spacing, d);
BR_TEST(smooth_stroke_radius, d);