Пример #1
0
        internal void AddBone(DbBone bone)
        {
            IEnumerable <DbBone> bones = new[] { bone };

            while (bones.Any())
            {
                Bones.AddRange(bones);
                var slots = bones.SelectMany(b => b.Slots);
                Slots.AddRange(slots);
                bones = bones.SelectMany(b => b.Bones);
            }
        }
Пример #2
0
 /// <summary>
 /// Add the given bone to this bone as its child.
 /// Also adds the bone to this bones armature for fast lookups.
 /// </summary>
 public void AddBone(DbBone bone)
 {
     Bones.Add(bone);
     Armature.AddBone(bone);
 }