sculpt-dev: Fix undo bug

This commit is contained in:
Joseph Eagar 2022-06-14 10:24:53 -07:00
parent 47a14ef4ad
commit c73fc97d45
1 changed files with 2 additions and 2 deletions

View File

@ -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;