forked from bartvdbraak/blender
Converting a mesh into a mesh (alt-c), was broken with shape keys and modifiers that changed the vertex count.
removal of the shape key was undone in DM_to_mesh().
This commit is contained in:
parent
16b15961a8
commit
2567129e7f
@ -247,8 +247,8 @@ void DM_to_mesh(DerivedMesh *dm, Mesh *me)
|
||||
|
||||
/* if the number of verts has changed, remove invalid data */
|
||||
if(tmp.totvert != me->totvert) {
|
||||
if(me->key) me->key->id.us--;
|
||||
me->key = NULL;
|
||||
if(tmp.key) tmp.key->id.us--;
|
||||
tmp.key = NULL;
|
||||
}
|
||||
|
||||
*me = tmp;
|
||||
|
Loading…
Reference in New Issue
Block a user