[Bf-blender-cvs] [1a1c5461247] master: Fix T91240: Object duplication was duplicating its action twice.

Bastien Montagne noreply at git.blender.org
Fri Sep 24 15:31:18 CEST 2021


Commit: 1a1c54612472fd28e4c23b695aa73bd7f81ffeaf
Author: Bastien Montagne
Date:   Fri Sep 24 15:25:49 2021 +0200
Branches: master
https://developer.blender.org/rB1a1c54612472fd28e4c23b695aa73bd7f81ffeaf

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...

===================================================================

M	source/blender/blenkernel/intern/object.c

===================================================================

diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 465ec9dc665..fbdf99c91c2 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -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);



More information about the Bf-blender-cvs mailing list