Fix T83119: Crash with topology mirror affecting a hidden vertex
Caused by rBba97da21acf2. For non-topology mirror hidden verts were never respected/included in EDBM_verts_mirror_cache_begin (they were excluded from the kdtree). Prior to said commit, hidden mirrored verts that were still in the map would have been excluded in a separate loop over vertices in 'editmesh_mirror_data_calc()' by checking BM_ELEM_HIDDEN. Due to the new nature of this function this check was now moved to EDBM_verts_mirror_cache_begin. Maniphest Tasks: T83119 Differential Revision: https://developer.blender.org/D9673
This commit is contained in:
parent
e4204a3979
commit
da8dc204bd
Notes:
blender-bot
2023-02-13 20:24:56 +01:00
Referenced by commit 12792ee70c
, Fix T83788: Topology mirror crashes for vertices aren't mirrored
Referenced by issue #83119, The application crashes (vanishes) when a topology mirror (or at least an X topology mirror) needs to move a hidden vertex.
|
@ -1139,6 +1139,9 @@ 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;
|
||||
}
|
||||
}
|
||||
else {
|
||||
int i_mirr;
|
||||
|
|
Loading…
Reference in New Issue