[Bf-blender-cvs] [7eebebebc7b] blender-v2.90-release: Fix T79164: Sculpting with smooth shading doesn't update normals

Pablo Dobarro noreply at git.blender.org
Mon Jul 27 22:02:59 CEST 2020


Commit: 7eebebebc7bb08621d97a8318a37366fbd7b02e8
Author: Pablo Dobarro
Date:   Wed Jul 22 16:44:47 2020 +0200
Branches: blender-v2.90-release
https://developer.blender.org/rB7eebebebc7bb08621d97a8318a37366fbd7b02e8

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

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_smooth.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list