[Bf-blender-cvs] [06b6c004f5f] blender-v3.3-release: Fix T100168: Sculpt positions undo not working after recent commit

Hans Goudey noreply at git.blender.org
Wed Aug 3 16:18:14 CEST 2022


Commit: 06b6c004f5fb2cae3c98c93970a64d7231992210
Author: Hans Goudey
Date:   Wed Aug 3 09:18:13 2022 -0500
Branches: blender-v3.3-release
https://developer.blender.org/rB06b6c004f5fb2cae3c98c93970a64d7231992210

Fix T100168: Sculpt positions undo not working after recent commit

efe0e2b18370 used the "normals_update" for applying positions from
an undo step, which doesn't set the necessary flags for a redraw.

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c
index 7110a5aae66..d37d0d2681f 100644
--- a/source/blender/editors/sculpt_paint/sculpt_undo.c
+++ b/source/blender/editors/sculpt_paint/sculpt_undo.c
@@ -171,7 +171,7 @@ static void update_cb_partial(PBVHNode *node, void *userdata)
   }
   else {
     if (BKE_pbvh_node_has_vert_with_normal_update_tag(data->pbvh, node)) {
-      BKE_pbvh_node_mark_normals_update(node);
+      BKE_pbvh_node_mark_update(node);
     }
     int verts_num;
     const int *vert_indices;



More information about the Bf-blender-cvs mailing list