[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25171] trunk/blender/source/blender/ blenkernel/intern/armature.c: crashfix, duplicating armatures with ID-Props assigned to the bones didnt copy the bone .
Campbell Barton
ideasman42 at gmail.com
Mon Dec 7 16:54:27 CET 2009
Revision: 25171
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25171
Author: campbellbarton
Date: 2009-12-07 16:54:27 +0100 (Mon, 07 Dec 2009)
Log Message:
-----------
crashfix, duplicating armatures with ID-Props assigned to the bones didnt copy the bone.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/armature.c
Modified: trunk/blender/source/blender/blenkernel/intern/armature.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/armature.c 2009-12-07 14:09:53 UTC (rev 25170)
+++ trunk/blender/source/blender/blenkernel/intern/armature.c 2009-12-07 15:54:27 UTC (rev 25171)
@@ -184,6 +184,9 @@
if(oldBone == actBone)
*newActBone= newBone;
+ if(oldBone->prop)
+ newBone->prop= IDP_CopyProperty(oldBone->prop);
+
/* Copy this bone's list*/
BLI_duplicatelist(&newBone->childbase, &oldBone->childbase);
More information about the Bf-blender-cvs
mailing list