[Bf-blender-cvs] [d37d96437ea] sculpt-dev: Fix crash with scene project and dyntopo
Pablo Dobarro
noreply at git.blender.org
Wed Jan 6 17:34:56 CET 2021
Commit: d37d96437ea585bea82d7d037433fd7cdf5addd6
Author: Pablo Dobarro
Date: Tue Jan 5 23:32:29 2021 +0100
Branches: sculpt-dev
https://developer.blender.org/rBd37d96437ea585bea82d7d037433fd7cdf5addd6
Fix crash with scene project and dyntopo
===================================================================
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 83144613a53..2ea1d99d2e2 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3737,6 +3737,8 @@ static void do_scene_project_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int
{
Brush *brush = BKE_paint_brush(&sd->paint);
+ SCULPT_vertex_random_access_ensure(ob->sculpt);
+
/* Threaded loop over nodes. */
SculptThreadedTaskData data = {
.sd = sd,
More information about the Bf-blender-cvs
mailing list