[Bf-blender-cvs] [59c3108] soc-2016-pbvh-painting: Quick bug fix causing sculptcache to crash sculpt.

Nathan Vollmer noreply at git.blender.org
Wed Jun 1 07:25:09 CEST 2016


Commit: 59c31082ccc4ddd25991ef1c542981ad3c8d05a7
Author: Nathan Vollmer
Date:   Tue May 31 23:25:10 2016 -0600
Branches: soc-2016-pbvh-painting
https://developer.blender.org/rB59c31082ccc4ddd25991ef1c542981ad3c8d05a7

Quick bug fix causing sculptcache to crash sculpt.

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 4906ed0..53b22bf 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3886,6 +3886,7 @@ static void sculpt_init_mirror_clipping(Object *ob, SculptSession *ss)
 static void sculpt_update_cache_invariants(bContext *C, Sculpt *sd, SculptSession *ss, wmOperator *op, const float mouse[2])
 {
 	StrokeCache *cache = MEM_callocN(sizeof(StrokeCache), "stroke cache");
+	ss->cache = cache;
 	Scene *scene = CTX_data_scene(C);
 	UnifiedPaintSettings *ups = &CTX_data_tool_settings(C)->unified_paint_settings;
 	Brush *brush = BKE_paint_brush(&sd->paint);




More information about the Bf-blender-cvs mailing list