[Bf-blender-cvs] [e1e061384be] master: Fix T81343: Smooth shading normals not updating with line project tool

Pablo Dobarro noreply at git.blender.org
Mon Oct 5 19:37:23 CEST 2020


Commit: e1e061384be5d36ff2aa974b17fe1d819db0e6a8
Author: Pablo Dobarro
Date:   Thu Oct 1 17:16:17 2020 +0200
Branches: master
https://developer.blender.org/rBe1e061384be5d36ff2aa974b17fe1d819db0e6a8

Fix T81343: Smooth shading normals not updating with line project tool

Just a missing update flag

Reviewed By: mont29

Maniphest Tasks: T81343

Differential Revision: https://developer.blender.org/D9077

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

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

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

diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c
index 06231479a6d..f7e8abde021 100644
--- a/source/blender/editors/sculpt_paint/paint_mask.c
+++ b/source/blender/editors/sculpt_paint/paint_mask.c
@@ -1212,6 +1212,9 @@ static void project_line_gesture_apply_task_cb(void *__restrict userdata,
       continue;
     }
     add_v3_v3(vd.co, disp);
+    if (vd.mvert) {
+      vd.mvert->flag |= ME_VERT_PBVH_UPDATE;
+    }
     any_updated = true;
   }
   BKE_pbvh_vertex_iter_end;



More information about the Bf-blender-cvs mailing list