Int32 SkeletonBlendedGeometry::getJointParentIndex(UInt32 index) const
{
    Node* ChildJoint(getJoint(index));

    if(ChildJoint->getParent())
    {
        return getMFInternalJoints()->findIndex(ChildJoint->getParent());
    }
    return -1;
}
Int32 SkeletonBlendedGeometry::getJointParentIndex(UInt32 index) const
{
    Joint* ChildJoint(getJoint(index));
    Node* ChildNode(dynamic_cast<Node*>(ChildJoint->getParents()[0]));

    if(ChildNode->getParent())
    {
        NodeCore* ParentCore(ChildNode->getParent()->getCore());
        if(ParentCore->getType().isDerivedFrom(Joint::getClassType()))
        {
            return getMFInternalJoints()->findIndex(ParentCore);
        }
    }
    return -1;
}