Files
UnrealEngineUWP/Engine/Source/Editor/GraphEditor/Private/AnimationNodes/SGraphNodeStateMachineInstance.cpp
2014-03-14 14:13:41 -04:00

27 lines
792 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "GraphEditorCommon.h"
#include "../KismetNodes/SGraphNodeK2Base.h"
#include "../KismetNodes/SGraphNodeK2Composite.h"
#include "SGraphNodeStateMachineInstance.h"
#include "SGraphPreviewer.h"
/////////////////////////////////////////////////////
// SGraphNodeStateMachineInstance
void SGraphNodeStateMachineInstance::Construct(const FArguments& InArgs, UAnimGraphNode_StateMachineBase* InNode)
{
GraphNode = InNode;
SetCursor(EMouseCursor::CardinalCross);
UpdateGraphNode();
}
UEdGraph* SGraphNodeStateMachineInstance::GetInnerGraph() const
{
UAnimGraphNode_StateMachineBase* StateMachineInstance = CastChecked<UAnimGraphNode_StateMachineBase>(GraphNode);
return StateMachineInstance->EditorStateMachineGraph;
}