From 5fe3909a7bd2c9512e7511089e61d7025abec12e Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 27 Jul 2010 10:27:08 +0000 Subject: [PATCH] Fix #23044: sculpted mesh not updated in object mode with VBO's enabled. --- source/blender/editors/sculpt_paint/sculpt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 5efcfa22517..546fbc14dfa 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -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);