Fix T67098: Inset causes shape keys to reset exiting edit-mode

Edit-mesh interactive redo reset the meshes shape-key index.

Also copy the selection mode when copying meshes.
This commit is contained in:
2020-04-08 16:24:33 +10:00
parent bd45ec0b06
commit 35861a49ee
2 changed files with 8 additions and 0 deletions

View File

@@ -717,6 +717,10 @@ BMesh *BM_mesh_copy(BMesh *bm_old)
MEM_freeN(vtable);
MEM_freeN(ftable);
/* Copy various settings. */
bm_new->shapenr = bm_old->shapenr;
bm_new->selectmode = bm_old->selectmode;
return bm_new;
}