Fix T91240: Object duplication was duplicating its action twice.

Weird that this was not reported before, this was creating a lot of
extra actions everytime...
This commit is contained in:
Bastien Montagne 2021-09-24 15:25:49 +02:00
parent e1e380ba38
commit 1a1c546124
Notes: blender-bot 2023-02-14 10:11:54 +01:00
Referenced by issue #91240, Full copy of scene causes failed assertion '(id_iter->tag & LIB_TAG_NEW) == 0'
1 changed files with 0 additions and 2 deletions

View File

@ -2656,8 +2656,6 @@ Object *BKE_object_duplicate(Main *bmain,
return obn;
}
BKE_animdata_duplicate_id_action(bmain, &obn->id, dupflag);
if (dupflag & USER_DUP_MAT) {
for (int i = 0; i < obn->totcol; i++) {
BKE_id_copy_for_duplicate(bmain, (ID *)obn->mat[i], dupflag);