[Bf-blender-cvs] [2e888bfe6c8] sculpt-dev: Fix possible crash with dyntopo and clay strips normal filter

Pablo Dobarro noreply at git.blender.org
Tue Apr 27 21:31:50 CEST 2021


Commit: 2e888bfe6c839834ddf2b1d2d80be600951851e9
Author: Pablo Dobarro
Date:   Tue Apr 27 21:31:25 2021 +0200
Branches: sculpt-dev
https://developer.blender.org/rB2e888bfe6c839834ddf2b1d2d80be600951851e9

Fix possible crash with dyntopo and clay strips normal filter

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

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 32cdf75f4cc..c0cb6965f73 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -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];



More information about the Bf-blender-cvs mailing list