Fix another crash
This commit is contained in:
parent
ed15d0c1b9
commit
a5fa9ec310
|
@ -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)) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue