bool IsMixedBoneIndex(int weightIndex, out int boneIndex)
{
boneIndex = -1;
float weight = 0f;
spriteMeshCache.GetBoneWeight(spriteMeshCache.nodes[spriteMeshCache.selection.First()]).GetWeight(weightIndex, out boneIndex, out weight);
List <Node> selectedNodes = spriteMeshCache.selectedNodes;
foreach (Node node in selectedNodes)
{
int l_boneIndex = -1;
spriteMeshCache.GetBoneWeight(node).GetWeight(weightIndex, out l_boneIndex, out weight);
if (l_boneIndex != boneIndex)
{
return(true);
}
}
return(false);
}