[Bf-blender-cvs] [762a988] master: Fix for copy_object_pose incrementing custom user twice

Campbell Barton noreply at git.blender.org
Wed Apr 30 21:58:16 CEST 2014


Commit: 762a988130379f78297f5a5b026c78be2c774ea6
Author: Campbell Barton
Date:   Thu May 1 05:54:57 2014 +1000
https://developer.blender.org/rB762a988130379f78297f5a5b026c78be2c774ea6

Fix for copy_object_pose incrementing custom user twice

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

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

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

diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index f3dd2ee..ed617c8 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -1366,10 +1366,6 @@ static void copy_object_pose(Object *obn, Object *ob)
 		
 		chan->flag &= ~(POSE_LOC | POSE_ROT | POSE_SIZE);
 		
-		if (chan->custom) {
-			id_us_plus(&chan->custom->id);
-		}
-		
 		for (con = chan->constraints.first; con; con = con->next) {
 			bConstraintTypeInfo *cti = BKE_constraint_typeinfo_get(con);
 			ListBase targets = {NULL, NULL};




More information about the Bf-blender-cvs mailing list