Sculpt: Fix T100608: SCULPT_UNDO_FACE_SETS broken for redo

Always swap values when restoring sculpt undo data.
This commit is contained in:
Joseph Eagar 2022-09-12 10:50:51 -07:00
parent b5f7af31d6
commit 2c1650ae8f
Notes: blender-bot 2023-02-14 07:47:59 +01:00
Referenced by issue #100608, Sculpt: Face set operation is not redo-able
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ static bool sculpt_undo_restore_face_sets(bContext *C, SculptUndoNode *unode)
int *face_sets = CustomData_add_layer(
&me->pdata, CD_SCULPT_FACE_SETS, CD_CONSTRUCT, NULL, me->totpoly);
for (int i = 0; i < me->totpoly; i++) {
face_sets[i] = unode->face_sets[i];
SWAP(int, face_sets[i], unode->face_sets[i]);
}
return false;
}