Gems/EMotionFX/Code/EMotionFX/Source/BlendTree.cpp
void BlendTree::OnRemoveNode(AnimGraph* animGraph, AnimGraphNode* nodeToRemove)
    {
        if (GetVirtualFinalNode() == nodeToRemove)
        {
            SetVirtualFinalNode(nullptr);
        }

        if (GetFinalNode() == nodeToRemove)
        {
            m_finalNodeId = AnimGraphNodeId::InvalidId;
            m_finalNode = nullptr;
        }

        // call it for all children
        AnimGraphNode::OnRemoveNode(animGraph, nodeToRemove);
    }
// callback that gets called before a node gets removed
callback that gets called before a node gets removed
callback that gets called before a node gets removed
void BlendTree::OnRemoveNode(AnimGraph* animGraph, AnimGraphNode* nodeToRemove)
    {
        if (GetVirtualFinalNode() == nodeToRemove)
        {
            SetVirtualFinalNode(nullptr);
        }
        if (GetFinalNode() == nodeToRemove)
        {
            m_finalNodeId = AnimGraphNodeId::InvalidId;
            m_finalNode = nullptr;
        }
        AnimGraphNode::OnRemoveNode(animGraph, nodeToRemove);
    }
void BlendTree :: OnRemoveNode ( AnimGraph * animGraph , AnimGraphNode * nodeToRemove ) { if ( GetVirtualFinalNode ( ) == nodeToRemove ) { SetVirtualFinalNode ( nullptr ) ; } if ( GetFinalNode ( ) == nodeToRemove ) { m_finalNodeId = AnimGraphNodeId :: InvalidId ; m_finalNode = nullptr ; } AnimGraphNode :: OnRemoveNode ( animGraph , nodeToRemove ) ; }
callback that gets called before a node gets removed
callback that gets called before a node gets removed
// call it for all children