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>2011-03-25 10:34:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-25 10:34:44 +0300
commitd8e6dd705fbf7d98043e8a210bb49d6903792872 (patch)
tree36efce09ef4494dd9b634f519cd0ac73c6d1745b /source/blender/editors/object/object_add.c
parent06b04fa8862eee030ea4024f020992664c3457fe (diff)
fix [#26607] blender won't duplicate or assign new drivers on duplication
Diffstat (limited to 'source/blender/editors/object/object_add.c')
-rw-r--r--source/blender/editors/object/object_add.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 2463e17d49f..289a66a1484 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -868,6 +868,10 @@ static void copy_object_set_idnew(bContext *C, int dupflag)
}
}
modifiers_foreachIDLink(ob, copy_object__forwardModifierLinks, NULL);
+
+ if(ob->adt)
+ BKE_relink_animdata(ob->adt);
+
ID_NEW(ob->parent);
ID_NEW(ob->proxy);
ID_NEW(ob->proxy_group);