Fix #23044: sculpted mesh not updated in object mode with VBO's enabled.

This commit is contained in:
Brecht Van Lommel
2010-07-27 10:27:08 +00:00
parent 83ff2857ae
commit 5fe3909a7b

View File

@@ -3305,6 +3305,8 @@ static void sculpt_flush_update(bContext *C)
if(mmd)
multires_mark_as_modified(ob);
if(ob->derivedFinal) /* VBO no longer valid */
GPU_drawobject_free(ob->derivedFinal);
if(ss->modifiers_active) {
DAG_id_flush_update(&ob->id, OB_RECALC_DATA);