Gems/EMotionFX/Code/EMotionFX/Source/AnimGraphManager.cpp
AnimGraph* AnimGraphManager::FindAnimGraphByFileName(const char* filename, bool isTool) const
    {
        MCore::LockGuardRecursive lock(m_animGraphLock);

        for (EMotionFX::AnimGraph* animGraph : m_animGraphs)
        {
            if (animGraph->GetIsOwnedByRuntime() == isTool)
            {
                continue;
            }

            if (AzFramework::StringFunc::Equal(animGraph->GetFileName(), filename, false /* no case */))
            {
                return animGraph;
            }
        }

        return nullptr;
    }
// find a anim graph with a given filename
find a anim graph with a given filename
find a anim graph with a given filename
AnimGraph* AnimGraphManager::FindAnimGraphByFileName(const char* filename, bool isTool) const
    {
        MCore::LockGuardRecursive lock(m_animGraphLock);
        for (EMotionFX::AnimGraph* animGraph : m_animGraphs)
        {
            if (animGraph->GetIsOwnedByRuntime() == isTool)
            {
                continue;
            }
            if (AzFramework::StringFunc::Equal(animGraph->GetFileName(), filename, false ))
            {
                return animGraph;
            }
        }
        return nullptr;
    }
AnimGraph * AnimGraphManager :: FindAnimGraphByFileName ( const char * filename , bool isTool ) const { MCore :: LockGuardRecursive lock ( m_animGraphLock ) ; for ( EMotionFX :: AnimGraph * animGraph : m_animGraphs ) { if ( animGraph -> GetIsOwnedByRuntime ( ) == isTool ) { continue ; } if ( AzFramework :: StringFunc :: Equal ( animGraph -> GetFileName ( ) , filename , false ) ) { return animGraph ; } } return nullptr ; }
find a anim graph with a given filename
find a anim graph with a given filename
/* no case */