Example #1
0
        public void RemoveBone(Bone value)
        {
            Helper.Assert(value != null && value.armature == this, "bone is null");

            value._SetParent(null);
            value._SetArmature(null);
        }
Example #2
0
        public void AddBone(Bone value, string parentName)
        {
            Helper.Assert(value != null, "add bone is null");

            value._SetArmature(this);
            value._SetParent(!string.IsNullOrEmpty(parentName) ? this.GetBone(parentName) : null);
        }