Gems/EMotionFX/Code/EMotionFX/Source/MotionManager.cpp
MotionSet* MotionManager::FindMotionSetByFileName(const char* fileName, bool isTool) const
    {
        const auto foundMotionSet = AZStd::find_if(begin(m_motionSets), end(m_motionSets), [fileName, isTool](const auto& motionSet)
        {
            return motionSet->GetIsOwnedByRuntime() != isTool &&
                AzFramework::StringFunc::Equal(motionSet->GetFilename(), fileName);
        });
        return foundMotionSet != end(m_motionSets) ? *foundMotionSet : nullptr;
    }
// find the motion set by filename and return a pointer, nullptr if the motion set is not in yet
find the motion set by filename and return a pointer, nullptr if the motion set is not in yet
find the motion set by filename and return a pointer nullptr if the motion set is not in yet
MotionSet* MotionManager::FindMotionSetByFileName(const char* fileName, bool isTool) const
    {
        const auto foundMotionSet = AZStd::find_if(begin(m_motionSets), end(m_motionSets), [fileName, isTool](const auto& motionSet)
        {
            return motionSet->GetIsOwnedByRuntime() != isTool &&
                AzFramework::StringFunc::Equal(motionSet->GetFilename(), fileName);
        });
        return foundMotionSet != end(m_motionSets) ? *foundMotionSet : nullptr;
    }
MotionSet * MotionManager :: FindMotionSetByFileName ( const char * fileName , bool isTool ) const { const auto foundMotionSet = AZStd :: find_if ( begin ( m_motionSets ) , end ( m_motionSets ) , [ fileName , isTool ] ( const auto & motionSet ) { return motionSet -> GetIsOwnedByRuntime ( ) != isTool && AzFramework :: StringFunc :: Equal ( motionSet -> GetFilename ( ) , fileName ) ; } ) ; return foundMotionSet != end ( m_motionSets ) ? * foundMotionSet : nullptr ; }
find the motion set by filename and return a pointer, nullptr if the motion set is not in yet
find the motion set by filename and return a pointer nullptr if the motion set is not in yet