diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-09-29 18:36:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-09-29 18:36:41 +0300 |
commit | 41e2dbaea96099ea4f75e866a683af430e9b2ae9 (patch) | |
tree | a342a477252bcbbee20cee7e6025219900be5321 /source/blender/blenkernel/BKE_paint.h | |
parent | d4f8e4e30cae6854351e44ded4ab7673c522d502 (diff) |
Weight Paint: accumulate support
- Clamp accumulate so it doesn't exceed brush strength.
- Was multiplying by brush strength twice.
Diffstat (limited to 'source/blender/blenkernel/BKE_paint.h')
-rw-r--r-- | source/blender/blenkernel/BKE_paint.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h index 015fd7c8a14..6cae8d28947 100644 --- a/source/blender/blenkernel/BKE_paint.h +++ b/source/blender/blenkernel/BKE_paint.h @@ -220,14 +220,14 @@ typedef struct SculptSession { /* For non-airbrush painting to re-apply from the original (MLoop aligned). */ unsigned int *previous_color; - unsigned int *previous_accum; + float *previous_accum; } vpaint; struct { struct SculptVertexPaintGeomMap gmap; /* Vertex aligned arrays of weights. */ - /* For non-airbrush painting to re-apply from the original. */ + float *previous_accum; float *previous_weight; /* Keep track of how much each vertex has been painted (non-airbrush only). */ float *alpha_weight; |