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:
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
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue