=bmesh= sculpt without multires updates properly now. not sure I did this correctly, though.

This commit is contained in:
Joseph Eagar
2011-08-30 02:33:27 +00:00
parent fef906d19b
commit 2c62878ef5
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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;