[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33725] trunk/blender/source/blender/ editors/sculpt_paint/sculpt_undo.c: Fixed bug reported by Reuben Martin:
Nicholas Bishop
nicholasbishop at gmail.com
Fri Dec 17 02:40:47 CET 2010
Revision: 33725
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33725
Author: nicholasbishop
Date: 2010-12-17 02:40:47 +0100 (Fri, 17 Dec 2010)
Log Message:
-----------
Fixed bug reported by Reuben Martin:
Undoing in sculpt mode with drawing mode not set to solid didn't
redraw correctly.
Problem was that the non-PBVH VBOs need to be remade in that case.
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/sculpt_undo.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt_undo.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt_undo.c 2010-12-17 00:13:23 UTC (rev 33724)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt_undo.c 2010-12-17 01:40:47 UTC (rev 33725)
@@ -52,6 +52,8 @@
#include "WM_api.h"
#include "WM_types.h"
+#include "GPU_buffers.h"
+
#include "ED_sculpt.h"
#include "paint_intern.h"
#include "sculpt_intern.h"
@@ -170,6 +172,9 @@
if(ss->modifiers_active || ((Mesh*)ob->data)->id.us > 1)
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
+
+ /* for non-PBVH drawing, need to recreate VBOs */
+ GPU_drawobject_free(ob->derivedFinal);
}
}
More information about the Bf-blender-cvs
mailing list