diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-22 17:44:47 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-27 23:02:35 +0300 |
commit | 7eebebebc7bb08621d97a8318a37366fbd7b02e8 (patch) | |
tree | 4066188d6618d93abd1cb0f92a4cd3ffaff533fb /source/blender/editors/sculpt_paint | |
parent | 4f3233dd536e8839c304dd34cd8aec89bfd8ca34 (diff) |
Fix T79164: Sculpting with smooth shading doesn't update normals
Just a missing update flag
Reviewed By: sergey
Maniphest Tasks: T79164
Differential Revision: https://developer.blender.org/D8364
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_smooth.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_smooth.c b/source/blender/editors/sculpt_paint/sculpt_smooth.c index 1a699c91e9b..7fbbcd1c896 100644 --- a/source/blender/editors/sculpt_paint/sculpt_smooth.c +++ b/source/blender/editors/sculpt_paint/sculpt_smooth.c @@ -242,6 +242,9 @@ static void do_smooth_brush_task_cb_ex(void *__restrict userdata, madd_v3_v3v3fl(val, vd.co, val, fade); SCULPT_clip(sd, ss, vd.co, val); } + if (vd.mvert) { + vd.mvert->flag |= ME_VERT_PBVH_UPDATE; + } } } BKE_pbvh_vertex_iter_end; |