=bmesh= sculpt without multires updates properly now. not sure I did this correctly, though.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user