Fix T80794: assert naming a new shape key from Python

This commit is contained in:
Campbell Barton
2020-09-15 15:25:33 +10:00
parent e86785c514
commit 9afadb3a9d

View File

@@ -397,6 +397,9 @@ static PointerRNA rna_Object_shape_key_add(
RNA_pointer_create((ID *)BKE_key_from_object(ob), &RNA_ShapeKey, kb, &keyptr);
WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
DEG_relations_tag_update(bmain);
return keyptr;
}
else {