Gems/EMotionFX/Code/EMotionFX/Source/MotionManager.cpp
size_t MotionManager::CalcNumRootMotionSets() const
    {
        size_t result = 0;

        // get the number of motion sets and iterate through them
        for (const MotionSet* motionSet : m_motionSets)
        {
            // sum up the root motion sets
            if (motionSet->GetParentSet() == nullptr)
            {
                result++;
            }
        }

        return result;
    }
// calculate the number of root motion sets
calculate the number of root motion sets
calculate the number of root motion sets
size_t MotionManager::CalcNumRootMotionSets() const
    {
        size_t result = 0;
        for (const MotionSet* motionSet : m_motionSets)
        {
            if (motionSet->GetParentSet() == nullptr)
            {
                result++;
            }
        }
        return result;
    }
size_t MotionManager :: CalcNumRootMotionSets ( ) const { size_t result = 0 ; for ( const MotionSet * motionSet : m_motionSets ) { if ( motionSet -> GetParentSet ( ) == nullptr ) { result ++ ; } } return result ; }
calculate the number of root motion sets
calculate the number of root motion sets
// get the number of motion sets and iterate through them // sum up the root motion sets