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

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