diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-07 18:54:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-07 18:54:27 +0300 |
commit | 74b80f8c3d30b8fc64fdf6eb023641ec94c6d57e (patch) | |
tree | ddbab83f7e4a78cb7c00a22d7b2a29a089f3966e /source | |
parent | 926201acf8f451bd9a240013ba972a8488c43abe (diff) |
crashfix, duplicating armatures with ID-Props assigned to the bones didnt copy the bone.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/armature.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index 418c9f00596..e53e4a1155b 100644 --- a/source/blender/blenkernel/intern/armature.c +++ b/source/blender/blenkernel/intern/armature.c @@ -184,6 +184,9 @@ static void copy_bonechildren (Bone* newBone, Bone* oldBone, Bone* actBone, Bone 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); |