[Bf-blender-cvs] [b54d7bfad81] temp_bmesh_multires: Fix redraw error for dyntopo smooth brush

Joseph Eagar noreply at git.blender.org
Fri Nov 6 01:37:23 CET 2020


Commit: b54d7bfad818d58bb92e96a1b323623e667ef8e5
Author: Joseph Eagar
Date:   Thu Nov 5 09:03:56 2020 -0800
Branches: temp_bmesh_multires
https://developer.blender.org/rBb54d7bfad818d58bb92e96a1b323623e667ef8e5

Fix redraw error for dyntopo smooth brush

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 89ad7394db0..12cc492172b 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -6169,11 +6169,14 @@ static void do_brush_action(Sculpt *sd, Object *ob, Brush *brush, UnifiedPaintSe
           else {
             SCULPT_ensure_dyntopo_node_undo(ob, nodes[i], SCULPT_UNDO_FACE_SETS, -1);
           }
+
+          BKE_pbvh_node_mark_update(nodes[i]);
         }
       }
-      else if (ss->bm) {
+      else {
         for (int i = 0; i < totnode; i++) {
           SCULPT_ensure_dyntopo_node_undo(ob, nodes[i], SCULPT_UNDO_COORDS, -1);
+          BKE_pbvh_node_mark_update(nodes[i]);
         }
       }
     }



More information about the Bf-blender-cvs mailing list