Fix another crash

This commit is contained in:
Joseph Eagar 2021-04-13 01:44:29 -07:00
parent ed15d0c1b9
commit a5fa9ec310
2 changed files with 3 additions and 11 deletions

View File

@ -8104,9 +8104,7 @@ bool SCULPT_cursor_geometry_info_update(bContext *C,
/* Update the active vertex of the SculptSession. */
ss->active_vertex_index = srd.active_vertex_index;
if (BKE_pbvh_type(ss->pbvh) != PBVH_BMESH) {
SCULPT_vertex_random_access_ensure(ss);
}
SCULPT_vertex_random_access_ensure(ss);
copy_v3_v3(out->active_vertex_co, SCULPT_active_vertex_co_get(ss));
switch (BKE_pbvh_type(ss->pbvh)) {

View File

@ -463,10 +463,7 @@ void SCULPT_smooth(Sculpt *sd,
return;
}
if (type != PBVH_BMESH) {
SCULPT_vertex_random_access_ensure(ss);
}
SCULPT_vertex_random_access_ensure(ss);
SCULPT_boundary_info_ensure(ob);
#ifdef PROXY_ADVANCED
@ -827,10 +824,7 @@ void SCULPT_smooth_vcol_boundary(
return;
}
if (type != PBVH_BMESH) {
SCULPT_vertex_random_access_ensure(ss);
}
SCULPT_vertex_random_access_ensure(ss);
SCULPT_boundary_info_ensure(ob);
#ifdef PROXY_ADVANCED