Gems/EMotionFX/Code/EMotionFX/Source/SkinningInfoVertexAttributeLayer.cpp
void SkinningInfoVertexAttributeLayer::RemoveAllInfluencesForNode(size_t nodeNr)
    {
        // get the number of vertices/attributes
        const size_t numAttributes = m_data.GetNumRows();
        for (size_t a = 0; a < numAttributes; ++a)
        {
            // iterate through all influences and compare them with the given node
            size_t i = 0;
            while (i < GetNumInfluences(a))
            {
                // remove the influence when it is linked to the given node
                if (GetInfluence(a, i)->GetNodeNr() == nodeNr)
                {
                    RemoveInfluence(a, i);
                }
                else
                {
                    i++;
                }
            }
        }
    }
// remove all influences which refer to the given node from our skinning info
remove all influences which refer to the given node from our skinning info
remove all influences which refer to the given node from our skinning info
void SkinningInfoVertexAttributeLayer::RemoveAllInfluencesForNode(size_t nodeNr)
    {
        const size_t numAttributes = m_data.GetNumRows();
        for (size_t a = 0; a < numAttributes; ++a)
        {
            size_t i = 0;
            while (i < GetNumInfluences(a))
            {
                if (GetInfluence(a, i)->GetNodeNr() == nodeNr)
                {
                    RemoveInfluence(a, i);
                }
                else
                {
                    i++;
                }
            }
        }
    }
void SkinningInfoVertexAttributeLayer :: RemoveAllInfluencesForNode ( size_t nodeNr ) { const size_t numAttributes = m_data . GetNumRows ( ) ; for ( size_t a = 0 ; a < numAttributes ; ++ a ) { size_t i = 0 ; while ( i < GetNumInfluences ( a ) ) { if ( GetInfluence ( a , i ) -> GetNodeNr ( ) == nodeNr ) { RemoveInfluence ( a , i ) ; } else { i ++ ; } } } }
remove all influences which refer to the given node from our skinning info
remove all influences which refer to the given node from our skinning info
// get the number of vertices/attributes // iterate through all influences and compare them with the given node // remove the influence when it is linked to the given node