Fix possible crash with dyntopo and clay strips normal filter
This commit is contained in:
parent
901d6e68d7
commit
2e888bfe6c
|
@ -5734,6 +5734,8 @@ static void do_clay_strips_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int t
|
|||
const float offset = SCULPT_brush_plane_offset_get(sd, ss);
|
||||
const float displace = radius * (0.18f + offset);
|
||||
|
||||
SCULPT_vertex_random_access_ensure(ss);
|
||||
|
||||
/* The sculpt-plane normal (whatever its set to). */
|
||||
float area_no_sp[3];
|
||||
|
||||
|
|
Loading…
Reference in New Issue