[Bf-blender-cvs] [736d1cf5f50] sculpt-dev: Sculpt: remove extraneous call to SCULPT_vertex_random_access_ensure

Joseph Eagar noreply at git.blender.org
Fri Oct 29 23:32:51 CEST 2021


Commit: 736d1cf5f501c0ef79277b55583bc48e886a1a17
Author: Joseph Eagar
Date:   Fri Oct 29 14:32:23 2021 -0700
Branches: sculpt-dev
https://developer.blender.org/rB736d1cf5f501c0ef79277b55583bc48e886a1a17

Sculpt: remove extraneous call to
        SCULPT_vertex_random_access_ensure

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

M	release/datafiles/startup.blend
M	source/blender/editors/sculpt_paint/sculpt_brushes.c
M	source/blender/editors/sculpt_paint/sculpt_smooth.c

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

diff --git a/release/datafiles/startup.blend b/release/datafiles/startup.blend
index 31a190f7c45..d57757a0522 100644
Binary files a/release/datafiles/startup.blend and b/release/datafiles/startup.blend differ
diff --git a/source/blender/editors/sculpt_paint/sculpt_brushes.c b/source/blender/editors/sculpt_paint/sculpt_brushes.c
index ef7aec120ec..dd1ffd02a1b 100644
--- a/source/blender/editors/sculpt_paint/sculpt_brushes.c
+++ b/source/blender/editors/sculpt_paint/sculpt_brushes.c
@@ -1301,8 +1301,6 @@ void SCULPT_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];
 
@@ -1973,8 +1971,6 @@ void SCULPT_do_layer_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode
     ss->cache->layer_stroke_id = ss->custom_layers[SCULPT_SCL_LAYER_STROKE_ID]->data;
   }
 
-  SCULPT_vertex_random_access_ensure(ss);
-
   SculptThreadedTaskData data = {.sd = sd,
                                  .ob = ob,
                                  .brush = brush,
diff --git a/source/blender/editors/sculpt_paint/sculpt_smooth.c b/source/blender/editors/sculpt_paint/sculpt_smooth.c
index 44b21777163..64e4d459e48 100644
--- a/source/blender/editors/sculpt_paint/sculpt_smooth.c
+++ b/source/blender/editors/sculpt_paint/sculpt_smooth.c
@@ -1608,7 +1608,7 @@ void SCULPT_smooth(Sculpt *sd,
     last = 1.0f;
   }
 
-  printf("smooth iterations: %d, last: %.4f\n", count + 1, last);
+  // printf("smooth iterations: %d, last: %.4f\n", count + 1, last);
 
   if (type == PBVH_FACES && !ss->pmap) {
     BLI_assert_msg(0, "sculpt smooth: pmap missing");



More information about the Bf-blender-cvs mailing list