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 10:32:03 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-03-14 10:32:03 +0400
commit521e724eddc9bfcc3f4aaeac184ae6974bb922a4 (patch)
tree659791e83846e89bd0b5e7866e639e2e9fcd8a44 /source/blender/editors/sculpt_paint/sculpt_undo.c
parent8717e35db3b4b267198e07f2d461348458a33282 (diff)
Skip hidden elements in PBVH iterator, raycast, and drawing.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_undo.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_undo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c
index 84b8b5a8bce..6de6621b44f 100644
--- a/source/blender/editors/sculpt_paint/sculpt_undo.c
+++ b/source/blender/editors/sculpt_paint/sculpt_undo.c
@@ -55,6 +55,7 @@
#include "BKE_paint.h"
#include "BKE_key.h"
#include "BKE_mesh.h"
+#include "BKE_subsurf.h"
#include "WM_api.h"
#include "WM_types.h"
@@ -209,7 +210,7 @@ static void sculpt_undo_restore(bContext *C, ListBase *lb)
BLI_pbvh_update(ss->pbvh, PBVH_UpdateBB|PBVH_UpdateOriginalBB|PBVH_UpdateRedraw, NULL);
if((mmd=sculpt_multires_active(scene, ob)))
- multires_mark_as_modified(ob);
+ multires_mark_as_modified(ob, MULTIRES_COORDS_MODIFIED);
tag_update= ((Mesh*)ob->data)->id.us > 1;