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:
@@ -247,8 +247,8 @@ void DM_to_mesh(DerivedMesh *dm, Mesh *me)
|
|||||||
|
|
||||||
/* if the number of verts has changed, remove invalid data */
|
/* if the number of verts has changed, remove invalid data */
|
||||||
if(tmp.totvert != me->totvert) {
|
if(tmp.totvert != me->totvert) {
|
||||||
if(me->key) me->key->id.us--;
|
if(tmp.key) tmp.key->id.us--;
|
||||||
me->key = NULL;
|
tmp.key = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
*me = tmp;
|
*me = tmp;
|
||||||
|
|||||||
Reference in New Issue
Block a user