diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-14 12:14:03 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-14 12:14:03 +0400 |
commit | bbb76ccb25f104764c70e0229ed503a4ccba9b4e (patch) | |
tree | 0ee3f794178feed84e893bdb1c790326be13a43f /source/blender/editors | |
parent | 4d3f11c66f3fce8d04f01283ab3f61b231df9fee (diff) |
Fix for multires undo with partial visibility.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index f5611b281ef..a130245d6d7 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -344,8 +344,8 @@ static void sculpt_undo_alloc_and_store_hidden(PBVH *pbvh, "unode->grid_hidden"); for(i = 0; i < totgrid; i++) { - if(grid_hidden[i]) - unode->grid_hidden[i] = MEM_dupallocN(grid_hidden[i]); + if(grid_hidden[grid_indices[i]]) + unode->grid_hidden[i] = MEM_dupallocN(grid_hidden[grid_indices[i]]); else unode->grid_hidden[i] = NULL; } |