diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-14 10:32:03 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2012-03-14 10:32:03 +0400 |
commit | 521e724eddc9bfcc3f4aaeac184ae6974bb922a4 (patch) | |
tree | 659791e83846e89bd0b5e7866e639e2e9fcd8a44 /source/blender/editors | |
parent | 8717e35db3b4b267198e07f2d461348458a33282 (diff) |
Skip hidden elements in PBVH iterator, raycast, and drawing.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 3 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index c7b27742969..f75610dbbe3 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -64,6 +64,7 @@ #include "BKE_report.h" #include "BKE_lattice.h" /* for armature_deform_verts */ #include "BKE_node.h" +#include "BKE_subsurf.h" #include "BIF_glutil.h" @@ -3346,7 +3347,7 @@ static void sculpt_flush_update(bContext *C) MultiresModifierData *mmd = ss->multires; if(mmd) - multires_mark_as_modified(ob); + multires_mark_as_modified(ob, MULTIRES_COORDS_MODIFIED); if(ob->derivedFinal) /* VBO no longer valid */ GPU_drawobject_free(ob->derivedFinal); 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; |