Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-09-15 08:25:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-09-15 08:25:33 +0300
commit9afadb3a9d0d64be70cb9bf3d878f5d121264edc (patch)
tree76fb95ce8f9664540abfd092e6d789425f9d6e14 /source/blender
parente86785c51445c3cbb79e837a6c5d0957b31cb82f (diff)
Fix T80794: assert naming a new shape key from Python
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_object_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_object_api.c b/source/blender/makesrna/intern/rna_object_api.c
index ab6b60603c7..a04ad28f9c3 100644
--- a/source/blender/makesrna/intern/rna_object_api.c
+++ b/source/blender/makesrna/intern/rna_object_api.c
@@ -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 {