diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-07 09:38:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-07 09:47:17 +0300 |
commit | 11292edba6ec361cc7142c4e2d9af0289cd895bb (patch) | |
tree | 2ecee7643e19d3ae87157d4a4b6c07b2e397f170 /source/blender/editors/mesh/editmesh_undo.c | |
parent | 1ef59d0eb535c3d526a1a1f72e257b5aa5b15fb3 (diff) |
BMesh: remove BMEditMesh.ob pointer
Remove this pointer since it's linking Mesh data back to the object,
where a single edit-mesh may have multiple object users,
causing incorrect assumptions in the code.
Resolves dangling pointer part of the T72667 crash,
although there are other issues which still need to be fixed.
In EDBM_op_finish and EDBM_update_generic,
full Main lookups have been added which should be replaced with mesh
argument or the update tagging moved elsewhere.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_undo.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_undo.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_undo.c b/source/blender/editors/mesh/editmesh_undo.c index db7751af0f0..faa80341b0f 100644 --- a/source/blender/editors/mesh/editmesh_undo.c +++ b/source/blender/editors/mesh/editmesh_undo.c @@ -605,7 +605,6 @@ static void undomesh_to_editmesh(UndoMesh *um, Object *ob, BMEditMesh *em, Key * em->selectmode = um->selectmode; bm->selectmode = um->selectmode; - em->ob = ob; bm->spacearr_dirty = BM_SPACEARR_DIRTY_ALL; |