Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-11-27 22:12:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-11-27 22:17:14 +0300
commit7711231838e726055c6690757f3799dff90bfd96 (patch)
tree4e41e96ddaeb612dc128bf160c4baa8fafb60ded /source/blender/python/bmesh
parente7502ee0aa8e27247689ef8debccaaa3b8b056bf (diff)
Fix T71865: Separating mesh parts breaks shape keys
This was an old bug which could be caused by saving after separating. Changes from 79b703bb635e made this fail reliably. Update shape key indices when they may be used again later.
Diffstat (limited to 'source/blender/python/bmesh')
-rw-r--r--source/blender/python/bmesh/bmesh_py_types.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c
index af595de2ee4..b601a35f7f2 100644
--- a/source/blender/python/bmesh/bmesh_py_types.c
+++ b/source/blender/python/bmesh/bmesh_py_types.c
@@ -1091,7 +1091,9 @@ static PyObject *bpy_bmesh_to_mesh(BPy_BMesh *self, PyObject *args)
bm = self->bm;
struct Main *bmain = NULL;
- struct BMeshToMeshParams params = {0};
+ struct BMeshToMeshParams params = {
+ .update_shapekey_indices = true,
+ };
if (me->id.tag & LIB_TAG_NO_MAIN) {
/* Mesh might be coming from a self-contained source like object.to_mesh(). No need to remap
* anything in this case. */