Gems/EMotionFX/Code/EMotionFX/Source/AnimGraphManager.cpp
bool AnimGraphManager::RemoveAnimGraph(AnimGraph* animGraph, bool delFromMemory)
    {
        MCore::LockGuardRecursive lock(m_animGraphLock);

        // find the index of the anim graph and return false in case the pointer is not valid
        const size_t animGraphIndex = FindAnimGraphIndex(animGraph);
        if (animGraphIndex == InvalidIndex)
        {
            return false;
        }

        RemoveAnimGraph(animGraphIndex, delFromMemory);
        return true;
    }
// Remove a given anim graph by pointer.
Remove a given anim graph by pointer.
Remove a given anim graph by pointer .
bool AnimGraphManager::RemoveAnimGraph(AnimGraph* animGraph, bool delFromMemory)
    {
        MCore::LockGuardRecursive lock(m_animGraphLock);
        const size_t animGraphIndex = FindAnimGraphIndex(animGraph);
        if (animGraphIndex == InvalidIndex)
        {
            return false;
        }
        RemoveAnimGraph(animGraphIndex, delFromMemory);
        return true;
    }
bool AnimGraphManager :: RemoveAnimGraph ( AnimGraph * animGraph , bool delFromMemory ) { MCore :: LockGuardRecursive lock ( m_animGraphLock ) ; const size_t animGraphIndex = FindAnimGraphIndex ( animGraph ) ; if ( animGraphIndex == InvalidIndex ) { return false ; } RemoveAnimGraph ( animGraphIndex , delFromMemory ) ; return true ; }
Remove a given anim graph by pointer.
Remove a given anim graph by pointer .
// find the index of the anim graph and return false in case the pointer is not valid