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:
Campbell Barton 2010-06-23 10:18:51 +00:00
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;