Fix T54098: Crash existing /w dyntopo sculpt
authorCampbell Barton <ideasman42@gmail.com>
Mon, 19 Feb 2018 06:27:01 +0000 (17:27 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 19 Feb 2018 06:34:30 +0000 (17:34 +1100)
commit05f3e245a8e1a1ad327c6dc993551cdd832d4e3c
tree6f2a93c52b71ab465a2d2cf75f8adf80fc3cdc76
parent7f65ab86e59f25e718213287273705cfd34e1746
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/blenkernel/intern/scene.c
source/blender/bmesh/intern/bmesh_mesh_conv.c
source/blender/bmesh/intern/bmesh_mesh_conv.h
source/blender/bmesh/operators/bmo_mesh_conv.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/mesh/editmesh_undo.c
source/blender/editors/mesh/editmesh_utils.c
source/blender/python/bmesh/bmesh_py_types.c