Esempio n. 1
0
        public static void ClampChannels(this EditableBoneWeight editableBoneWeight, int numChannels, bool sortChannels = true)
        {
            if (sortChannels)
            {
                editableBoneWeight.SortChannels();
            }

            while (editableBoneWeight.GetChannelCount() > numChannels)
            {
                editableBoneWeight.RemoveChannel(numChannels);
            }
        }