Commit: 2bc9197981f12ead3af5b81143e320fb1d61cba9
Author: Nathan Vollmer
Date: Sat Jun 18 21:59:20 2016 -0600
Branches: soc-2016-pbvh-painting
https://developer.blender.org/rB2bc9197981f12ead3af5b81143e320fb1d61cba9
Forgot to free stroke cache. Something isn't quite right with vert to loop
freeing...
===================================================================
M source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c
b/source/blender/editors/sculpt_paint/paint_vertex.c
index eae55a0..4f53c7c 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -3341,6 +3341,11 @@ static void vpaint_stroke_done(const bContext *C, struct
PaintStroke *stroke)
WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
DAG_id_tag_update(&me->id, 0);
+ if (ob->sculpt->cache){
+ sculpt_cache_free(ob->sculpt->cache);
+ ob->sculpt->cache = NULL;
+ }
+
MEM_freeN(vpd);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs