[Bf-blender-cvs] [c73fc97d45f] sculpt-dev: sculpt-dev: Fix undo bug

Joseph Eagar noreply at git.blender.org
Tue Jun 14 19:25:05 CEST 2022


Commit: c73fc97d45fb5f9cbd2a565cb013dce62de21f66
Author: Joseph Eagar
Date:   Tue Jun 14 10:24:53 2022 -0700
Branches: sculpt-dev
https://developer.blender.org/rBc73fc97d45fb5f9cbd2a565cb013dce62de21f66

sculpt-dev: Fix undo bug

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

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 dd3c89e0636..aefc7f976fb 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5419,8 +5419,8 @@ static void get_nodes_undo(Sculpt *sd,
     return;
   }
 
-  // dyntopo can't push undo nodes inside a thread
-  if (ss->bm && use_pixels) {
+  /* Dyntopo can't push undo nodes inside a thread. */
+  if (ss->bm && !use_pixels) {
     if (ELEM(tool, SCULPT_TOOL_PAINT, SCULPT_TOOL_SMEAR)) {
       for (int i = 0; i < totnode; i++) {
         int other = brush->vcol_boundary_factor > 0.0f ? SCULPT_UNDO_COORDS : -1;



More information about the Bf-blender-cvs mailing list