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>2009-10-28 10:15:01 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2009-10-28 10:15:01 +0300
commit7ce5c951c5bb3607cac2bc603ed9a1fbcc5299dd (patch)
treedc4a702bf70bf5c1deb96a2f1dff9fdf2bbe7d9e /source/blender/editors/sculpt_paint
parent243c73e96e18c126227d43728e2d3639c9f7ee41 (diff)
Avoid an unecessary rebuild of the pbvh.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 28ca5d2fecf..74762379202 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -1003,7 +1003,9 @@ static struct MultiresModifierData *sculpt_multires_active(Object *ob)
static void sculpt_update_mesh_elements(bContext *C)
{
Object *ob = CTX_data_active_object(C);
- DerivedMesh *dm = mesh_get_derived_final(CTX_data_scene(C), ob, CD_MASK_BAREMESH);
+ DerivedMesh *dm =
+ mesh_get_derived_final(CTX_data_scene(C), ob,
+ CTX_wm_view3d(C)->customdata_mask);
SculptSession *ss = ob->sculpt;
if((ss->multires = sculpt_multires_active(ob))) {