From 2c62878ef51edef73ad3103fe64c8fa73a601ea1 Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Tue, 30 Aug 2011 02:33:27 +0000 Subject: [PATCH] =bmesh= sculpt without multires updates properly now. not sure I did this correctly, though. --- source/blender/editors/sculpt_paint/sculpt.c | 2 +- source/blender/editors/sculpt_paint/sculpt_undo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index e691edff9cd..cd03b83eba2 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -3389,7 +3389,7 @@ static void sculpt_flush_update(bContext *C) if(ob->derivedFinal) /* VBO no longer valid */ GPU_drawobject_free(ob->derivedFinal); - if (!ss->cache) + if (!ss->cache || !mmd) DAG_id_tag_update(&ob->id, OB_RECALC_DATA); if(ss->modifiers_active) { diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index ca1737fdf87..cd93ae6f77b 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -193,7 +193,7 @@ static void sculpt_undo_restore(bContext *C, ListBase *lb) if((mmd=sculpt_multires_active(scene, ob))) multires_mark_as_modified(ob); - tag_update= ((Mesh*)ob->data)->id.us > 1; + tag_update= ((Mesh*)ob->data)->id.us > 1 || !mmd; if(ss->modifiers_active) { Mesh *mesh= ob->data;