Fix T83788: Topology mirror crashes for vertices aren't mirrored

Caused by da8dc204bd
This commit is contained in:
Campbell Barton 2020-12-15 18:07:12 +11:00
parent e035d7301c
commit 12792ee70c
Notes: blender-bot 2023-02-14 06:27:47 +01:00
Referenced by issue #83788, Topology mirror crashes blender
1 changed files with 4 additions and 2 deletions

View File

@ -1139,8 +1139,10 @@ void EDBM_verts_mirror_cache_begin_ex(BMEditMesh *em,
if (use_topology) {
v_mirr = cache_mirr_intptr_as_bmvert(mesh_topo_store.index_lookup, i);
if (respecthide && BM_elem_flag_test(v_mirr, BM_ELEM_HIDDEN)) {
v_mirr = NULL;
if (v_mirr != NULL) {
if (respecthide && BM_elem_flag_test(v_mirr, BM_ELEM_HIDDEN)) {
v_mirr = NULL;
}
}
}
else {