Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/TimeView/TimeViewPlugin.cpp
TimeViewPlugin::MotionInfo* TimeViewPlugin::FindMotionInfo(uint32 motionID)
    {
        const auto foundMotionInfo = AZStd::find_if(begin(m_motionInfos), end(m_motionInfos), [motionID](const MotionInfo* motionInfo)
        {
            return motionInfo->m_motionId == motionID;
        });
        if (foundMotionInfo != end(m_motionInfos))
        {
            return *foundMotionInfo;
        }

        // we haven't found a motion info for the given id yet, so create a new one
        MotionInfo* motionInfo  = new MotionInfo();
        motionInfo->m_motionId   = motionID;
        motionInfo->m_initialized = false;
        m_motionInfos.emplace_back(motionInfo);
        return motionInfo;
    }
// find the motion info for the given motion id
find the motion info for the given motion id
find the motion info for the given motion id
TimeViewPlugin::MotionInfo* TimeViewPlugin::FindMotionInfo(uint32 motionID)
    {
        const auto foundMotionInfo = AZStd::find_if(begin(m_motionInfos), end(m_motionInfos), [motionID](const MotionInfo* motionInfo)
        {
            return motionInfo->m_motionId == motionID;
        });
        if (foundMotionInfo != end(m_motionInfos))
        {
            return *foundMotionInfo;
        }
        MotionInfo* motionInfo  = new MotionInfo();
        motionInfo->m_motionId   = motionID;
        motionInfo->m_initialized = false;
        m_motionInfos.emplace_back(motionInfo);
        return motionInfo;
    }
TimeViewPlugin :: MotionInfo * TimeViewPlugin :: FindMotionInfo ( uint32 motionID ) { const auto foundMotionInfo = AZStd :: find_if ( begin ( m_motionInfos ) , end ( m_motionInfos ) , [ motionID ] ( const MotionInfo * motionInfo ) { return motionInfo -> m_motionId == motionID ; } ) ; if ( foundMotionInfo != end ( m_motionInfos ) ) { return * foundMotionInfo ; } MotionInfo * motionInfo = new MotionInfo ( ) ; motionInfo -> m_motionId = motionID ; motionInfo -> m_initialized = false ; m_motionInfos . emplace_back ( motionInfo ) ; return motionInfo ; }
find the motion info for the given motion id
find the motion info for the given motion id
// we haven't found a motion info for the given id yet, so create a new one