From 05f3e245a8e1a1ad327c6dc993551cdd832d4e3c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 19 Feb 2018 17:27:01 +1100 Subject: Fix T54098: Crash existing /w dyntopo sculpt Optionally don't remap indices for objects. Checking all objects parent's would reference a freed pointer while freeing all objects. In the case of dynamic topology there is no use in keeping track of hook/vertex-parent indices. Also disable this when creating meshes for undo storage since adding an undo step shouldn't be modifying other objects. --- source/blender/bmesh/intern/bmesh_mesh_conv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/bmesh/intern/bmesh_mesh_conv.h') diff --git a/source/blender/bmesh/intern/bmesh_mesh_conv.h b/source/blender/bmesh/intern/bmesh_mesh_conv.h index 1974d364171..e6072f7b5f2 100644 --- a/source/blender/bmesh/intern/bmesh_mesh_conv.h +++ b/source/blender/bmesh/intern/bmesh_mesh_conv.h @@ -56,6 +56,8 @@ ATTR_NONNULL(1, 3); struct BMeshToMeshParams { uint calc_tessface : 1; + /** Update object hook indices & vertex parents. */ + uint calc_object_remap : 1; int64_t cd_mask_extra; }; void BM_mesh_bm_to_me( -- cgit v1.2.3