internal void linkChilderen(InstanceBone[] bones)
 {
     foreach (var bone in bones)
     {
         if (bone.Parent == this) Childeren.Add(bone);
     }
 }
Exemplo n.º 2
0
        public InstanceObjectArmature(ObjectArmature o)
            : base(o)
        {
            Armature = o.Armature;

            Bones = new InstanceBone[o.Armature.Bones.Length];
            for (int i = 0; i != Bones.Length; ++i)
            {
                Bones[i] = new InstanceBone(o.Armature.Bones[i]);
            }
        }
        internal void linkObjects(InstanceBone[] bones)
        {
            if (Bone.Parent == null) return;

            foreach (var bone in bones)
            {
                if (Bone.Parent == bone.Bone)
                {
                    Parent = bone;
                    break;
                }
            }
        }
        public InstanceObjectArmature(ObjectArmature o)
            : base(o)
        {
            Armature = o.Armature;

            Bones = new InstanceBone[o.Armature.Bones.Length];
            for (int i = 0; i != Bones.Length; ++i)
            {
                Bones[i] = new InstanceBone(o.Armature.Bones[i]);
            }
        }