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
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2017-08-30 18:24:06 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-08-30 18:24:06 +0300
commit29b2a47a8a361d657f2e275b5eebaf412ecafae9 (patch)
treef6ca04ea76895e1981f1a20219c604c10b8994bf /source
parent25c5928b2b6a71a426b123a81b605e2fbe5e297e (diff)
Fix T52588: Shape key value driver variables of duplicated object sets refer to old objects.
Regression since 2.78, to be backported to 2.79.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_add.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index e4f6d0da38f..74da6817185 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -2189,6 +2189,11 @@ static Base *object_add_duplicate_internal(Main *bmain, Scene *scene, Base *base
if (didit) {
Key *key = BKE_key_from_object(obn);
+ Key *oldkey = BKE_key_from_object(ob);
+ if (oldkey != NULL) {
+ ID_NEW_SET(oldkey, key);
+ }
+
if (dupflag & USER_DUP_ACT) {
bActuator *act;