Fix: Shapekey Basis not updated on editmode exit

This commit is contained in:
Campbell Barton
2014-11-10 13:32:39 +01:00
parent 723f1e950b
commit 225e3460d0
2 changed files with 6 additions and 1 deletions

View File

@@ -381,6 +381,12 @@ void EDBM_mesh_load(Object *ob)
Mesh *me = ob->data;
BMesh *bm = me->edit_btmesh->bm;
/* Workaround for T42360, 'ob->shapenr' should be 1 in this case.
* however this isn't synchronized between objects at the moment. */
if (UNLIKELY((ob->shapenr == 0) && (me->key && !BLI_listbase_is_empty(&me->key->block)))) {
bm->shapenr = 1;
}
BM_mesh_bm_to_me(bm, me, false);
#ifdef USE_TESSFACE_DEFAULT

View File

@@ -379,7 +379,6 @@ void OBJECT_OT_shape_key_remove(wmOperatorType *ot)
ot->description = "Remove shape key from the object";
/* api callbacks */
ot->poll = shape_key_mode_poll;
ot->poll = shape_key_mode_exists_poll;
ot->exec = shape_key_remove_exec;