Fix crash with scene project and dyntopo

This commit is contained in:
Pablo Dobarro 2021-01-05 23:32:29 +01:00
parent 940fb3c044
commit d37d96437e
1 changed files with 2 additions and 0 deletions

View File

@ -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,