[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30802] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: Fix #23044: sculpted mesh not updated in object mode with VBO's enabled.

Brecht Van Lommel brecht at blender.org
Tue Jul 27 12:27:47 CEST 2010


Revision: 30802
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30802
Author:   blendix
Date:     2010-07-27 12:27:08 +0200 (Tue, 27 Jul 2010)

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

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/sculpt.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2010-07-27 10:06:43 UTC (rev 30801)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2010-07-27 10:27:08 UTC (rev 30802)
@@ -3305,6 +3305,8 @@
 
 	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);





More information about the Bf-blender-cvs mailing list