From 6c43490616973af78f91062df402e2ca34cedac5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 6 Oct 2017 19:10:33 +1100 Subject: Vertex Paint: use view normal w/ 2D falloff When projecting to the view, cull faces pointing away from the view normal. --- source/blender/editors/sculpt_paint/sculpt_intern.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/sculpt_paint/sculpt_intern.h') diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h index 73581d402cf..aaea13ce5d0 100644 --- a/source/blender/editors/sculpt_paint/sculpt_intern.h +++ b/source/blender/editors/sculpt_paint/sculpt_intern.h @@ -219,6 +219,8 @@ bool sculpt_search_circle_cb(PBVHNode *node, void *data_v); SculptBrushTestFn sculpt_brush_test_init_with_falloff_shape( SculptSession *ss, SculptBrushTest *test, char falloff_shape); +const float *sculpt_brush_frontface_normal_from_falloff_shape( + SculptSession *ss, char falloff_shape); float tex_strength( struct SculptSession *ss, const struct Brush *br, -- cgit v1.2.3