Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-03-14 12:14:03 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-03-14 12:14:03 +0400
commitbbb76ccb25f104764c70e0229ed503a4ccba9b4e (patch)
tree0ee3f794178feed84e893bdb1c790326be13a43f /source/blender/editors
parent4d3f11c66f3fce8d04f01283ab3f61b231df9fee (diff)
Fix for multires undo with partial visibility.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_undo.c4
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;
}