Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/AnimGraph/BlendGraphWidget.cpp
void BlendGraphWidget::OnShiftClickedNode(GraphNode* node)
    {
        // when we are dealing with a state node
        if (node->GetType() == StateGraphNode::TYPE_ID)
        {
            EMotionFX::AnimGraphInstance* animGraphInstance = GetActiveGraph()->GetModelIndex().data(AnimGraphModel::ROLE_ANIM_GRAPH_INSTANCE).value<EMotionFX::AnimGraphInstance*>();
            if (animGraphInstance)
            {
                animGraphInstance->TransitionToState(node->GetName());
            }
        }
    }
// left-clicked on a node while shift pressed
left-clicked on a node while shift pressed
left - clicked on a node while shift pressed
void BlendGraphWidget::OnShiftClickedNode(GraphNode* node)
    {
        if (node->GetType() == StateGraphNode::TYPE_ID)
        {
            EMotionFX::AnimGraphInstance* animGraphInstance = GetActiveGraph()->GetModelIndex().data(AnimGraphModel::ROLE_ANIM_GRAPH_INSTANCE).value<EMotionFX::AnimGraphInstance*>();
            if (animGraphInstance)
            {
                animGraphInstance->TransitionToState(node->GetName());
            }
        }
    }
void BlendGraphWidget :: OnShiftClickedNode ( GraphNode * node ) { if ( node -> GetType ( ) == StateGraphNode :: TYPE_ID ) { EMotionFX :: AnimGraphInstance * animGraphInstance = GetActiveGraph ( ) -> GetModelIndex ( ) . data ( AnimGraphModel :: ROLE_ANIM_GRAPH_INSTANCE ) . value < EMotionFX :: AnimGraphInstance * > ( ) ; if ( animGraphInstance ) { animGraphInstance -> TransitionToState ( node -> GetName ( ) ) ; } } }
left-clicked on a node while shift pressed
left - clicked on a node while shift pressed
// when we are dealing with a state node