Gems/EMotionFX/Code/EMotionFX/Source/MotionSystem.cpp
void MotionSystem::StopAllMotions(Motion* motion)
    {
        for (MotionInstance* motionInstance : m_motionInstances)
        {
            if (motionInstance->GetMotion()->GetID() == motion->GetID())
            {
                motionInstance->Stop();
            }
        }
    }
// stop all motion instances of a given motion
stop all motion instances of a given motion
stop all motion instances of a given motion
void MotionSystem::StopAllMotions(Motion* motion)
    {
        for (MotionInstance* motionInstance : m_motionInstances)
        {
            if (motionInstance->GetMotion()->GetID() == motion->GetID())
            {
                motionInstance->Stop();
            }
        }
    }
void MotionSystem :: StopAllMotions ( Motion * motion ) { for ( MotionInstance * motionInstance : m_motionInstances ) { if ( motionInstance -> GetMotion ( ) -> GetID ( ) == motion -> GetID ( ) ) { motionInstance -> Stop ( ) ; } } }
stop all motion instances of a given motion
stop all motion instances of a given motion