Commit: 226ba4477530b4059c9e2eb6701e698967d9bd03
Author: Dalai Felinto
Date:   Wed Feb 15 15:30:07 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB226ba4477530b4059c9e2eb6701e698967d9bd03

Fix sculpt brush draw crash on Blender2.8

Temporary solution by Sergey Sharybin, it needs further investigation.
This should not be necessary, specially since this works fine in master.

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

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 84e98181df..3cdbe1e5c3 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -2044,6 +2044,10 @@ static void do_draw_brush(Sculpt *sd, Object *ob, 
PBVHNode **nodes, int totnode)
        mul_v3_v3(offset, ss->cache->scale);
        mul_v3_fl(offset, bstrength);
 
+       /* XXX - this shouldn't be necessary, but sculpting crashes in 
blender2.8 otherwise
+        * initialize before threads so they can do curve mapping */
+       curvemapping_initialize(brush->curve);
+
        /* threaded loop over nodes */
        SculptThreadedTaskData data = {
            .sd = sd, .ob = ob, .brush = brush, .nodes = nodes,

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to