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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-06-12 13:58:31 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-06-12 13:58:31 +0300
commit43eebdfebd6e31d188ae3c1b220c8991fc869df3 (patch)
tree5adc929ce792f2dfd74276838e63d91fcddb9a1c /source/blender/makesrna/intern/rna_object_api.c
parentc98b2e74df2e531726f5ceabe76342282f695f23 (diff)
parentbe57cf9b2a0e1be577211839487cacd288886c1a (diff)
Merge branch 'master' into blender2.8
Conflicts: source/blender/collada/DocumentImporter.cpp source/blender/editors/include/ED_object.h source/blender/editors/object/object_modifier.c
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_object_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object_api.c b/source/blender/makesrna/intern/rna_object_api.c
index fb27af7c464..f86a3d8236a 100644
--- a/source/blender/makesrna/intern/rna_object_api.c
+++ b/source/blender/makesrna/intern/rna_object_api.c
@@ -211,9 +211,10 @@ static Mesh *rna_Object_to_mesh(
static PointerRNA rna_Object_shape_key_add(Object *ob, bContext *C, ReportList *reports,
const char *name, int from_mix)
{
+ Main *bmain = CTX_data_main(C);
KeyBlock *kb = NULL;
- if ((kb = BKE_object_shapekey_insert(ob, name, from_mix))) {
+ if ((kb = BKE_object_shapekey_insert(bmain, ob, name, from_mix))) {
PointerRNA keyptr;
RNA_pointer_create((ID *)ob->data, &RNA_ShapeKey, kb, &keyptr);