Sculpt: remove extraneous call to

SCULPT_vertex_random_access_ensure
This commit is contained in:
Joseph Eagar 2021-10-29 14:32:23 -07:00
parent 9549dbb994
commit 736d1cf5f5
3 changed files with 1 additions and 5 deletions

Binary file not shown.

View File

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

View File

@ -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");