[Bf-blender-cvs] [b180900e52a] master: Fix missing usercount update of poselib when copying Object.

Bastien Montagne noreply at git.blender.org
Thu May 4 15:09:13 CEST 2017


Commit: b180900e52a5e662faf354d6343cb2ad620d9866
Author: Bastien Montagne
Date:   Thu May 4 15:08:05 2017 +0200
Branches: master
https://developer.blender.org/rBb180900e52a5e662faf354d6343cb2ad620d9866

Fix missing usercount update of poselib when copying Object.

Still finding such missing cases... :(

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

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

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

diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index fbca03c1e07..b65cc408ae5 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -1145,6 +1145,7 @@ Object *BKE_object_copy_ex(Main *bmain, Object *ob, bool copy_caches)
 
 	/* increase user numbers */
 	id_us_plus((ID *)obn->data);
+	id_us_plus((ID *)obn->poselib);
 	id_us_plus((ID *)obn->gpd);
 	id_us_plus((ID *)obn->dup_group);




More information about the Bf-blender-cvs mailing list