/// <summary>
/// Overriden to copy/clone the bones of the master skeleton.
/// </summary>
protected override void LoadImpl()
{
nextAutoHandle = skeleton.nextAutoHandle;
nextTagPointAutoHandle = 0;
this.blendMode = skeleton.BlendMode;
// copy bones starting at the roots
for (int i = 0; i < skeleton.RootBoneCount; i++)
{
Bone rootBone = skeleton.GetRootBone(i);
CloneBoneAndChildren(rootBone, null);
rootBone.Update(true, false);
}
SetBindingPose();
// Clone the attachment points
for (int i = 0; i < skeleton.AttachmentPoints.Count; i++)
{
AttachmentPoint ap = skeleton.AttachmentPoints[i];
Bone parentBone = this.GetBone(ap.ParentBone);
this.CreateAttachmentPoint(ap.Name, parentBone.Handle, ap.Orientation, ap.Position);
}
}