diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-12-15 10:07:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-12-15 10:10:04 +0300 |
commit | 12792ee70cd87ce4495a62cb89fd37b95be11917 (patch) | |
tree | c2cea0c15e077b16771e6c81262eb1487ed7a1c4 /source/blender/editors | |
parent | e035d7301c8c6fc1bb42110054101b00d190d1f9 (diff) |
Fix T83788: Topology mirror crashes for vertices aren't mirrored
Caused by da8dc204bd062b2712869cf2709d2530915249b5
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_utils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_utils.c b/source/blender/editors/mesh/editmesh_utils.c index 6467df0e87b..94f386e08d5 100644 --- a/source/blender/editors/mesh/editmesh_utils.c +++ b/source/blender/editors/mesh/editmesh_utils.c @@ -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 { |