diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2010-12-17 04:40:47 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2010-12-17 04:40:47 +0300 |
commit | b51d86d977cf5214925acd47ad3337639a601e3f (patch) | |
tree | acd3e557dae4adcdc7777f373e50dcccdd77eb86 /source/blender/editors/sculpt_paint | |
parent | a140fdcbdba49c0b84c99367698a4bdd588908a1 (diff) |
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.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index a9b27ab2a15..c9912936399 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -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 @@ static void sculpt_undo_restore(bContext *C, ListBase *lb) 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); } } |