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.
This commit is contained in:
Bastien Montagne 2017-08-30 17:24:06 +02:00
parent 25c5928b2b
commit 29b2a47a8a
Notes: blender-bot 2023-02-14 06:38:11 +01:00
Referenced by issue #52588, Shape key value driver variables of duplicated object sets refer to old objects
1 changed files with 5 additions and 0 deletions

View File

@ -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;