diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-09-12 20:50:51 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-09-12 20:51:53 +0300 |
commit | 2c1650ae8fd5ec1bdcb170a5f749d55f8bf61e62 (patch) | |
tree | dc294d48d0aa318251e1998700eeda3440526c27 | |
parent | b5f7af31d6d474c3b455bacda079969fde7c0962 (diff) |
Sculpt: Fix T100608: SCULPT_UNDO_FACE_SETS broken for redo
Always swap values when restoring sculpt undo data.
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 22928a8c934..af94cad88f3 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -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; } |