diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-09-29 15:47:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-09-29 16:28:54 +0300 |
commit | d4f8e4e30cae6854351e44ded4ab7673c522d502 (patch) | |
tree | 64ba12f0f512a5fbcfe447e1daf454571ccd445f /source/blender/editors/sculpt_paint/sculpt_intern.h | |
parent | 9298c53e4cdb30f8d758ba02556b2fe6410da3a6 (diff) |
Cleanup: de-duplicate copied code w/ vertex paint
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_intern.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h index d61d84c1863..27d8fbaa340 100644 --- a/source/blender/editors/sculpt_paint/sculpt_intern.h +++ b/source/blender/editors/sculpt_paint/sculpt_intern.h @@ -207,6 +207,12 @@ float tex_strength( const float mask, const int thread_id); +/* just for vertex paint. */ +void sculpt_pbvh_calc_area_normal( + const struct Brush *brush, Object *ob, + PBVHNode **nodes, int totnode, + bool use_threading, + float r_area_no[3]); /* Cache stroke properties. Used because * RNA property lookup isn't particularly fast. @@ -304,6 +310,9 @@ typedef struct StrokeCache { } StrokeCache; +void sculpt_cache_calc_brushdata_symm( + StrokeCache *cache, const char symm, + const char axis, const float angle); void sculpt_cache_free(StrokeCache *cache); SculptUndoNode *sculpt_undo_push_node(Object *ob, PBVHNode *node, SculptUndoType type); |