Files
UnrealEngineUWP/Engine/Plugins/Experimental/DataInterfaceGraph/Source/DataInterfaceGraphUncookedOnly/Private/DataInterfaceGraph_EdGraph.cpp
Helge Mathee 6520c809a9 Control Rig: backend work for support for multi graph
#rb benoit.gadreau
#jira UE-153497
#preflight https://horde.devtools.epicgames.com/job/6294be4e2e34c2e487b13394

[CL 20434781 by Helge Mathee in ue5-main branch]
2022-05-31 04:27:20 -04:00

23 lines
825 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "DataInterfaceGraph_EdGraph.h"
#include "DataInterfaceGraph_EditorData.h"
#include "DataInterfaceUncookedOnlyUtils.h"
void UDataInterfaceGraph_EdGraph::Initialize(UDataInterfaceGraph_EditorData* InEditorData)
{
InEditorData->ModifiedEvent.RemoveAll(this);
InEditorData->ModifiedEvent.AddUObject(this, &UDataInterfaceGraph_EdGraph::HandleModifiedEvent);
InEditorData->VMCompiledEvent.RemoveAll(this);
InEditorData->VMCompiledEvent.AddUObject(this, &UDataInterfaceGraph_EdGraph::HandleVMCompiledEvent);
}
FRigVMClient* UDataInterfaceGraph_EdGraph::GetRigVMClient() const
{
if (const UDataInterfaceGraph_EditorData* EditorData = GetTypedOuter<UDataInterfaceGraph_EditorData>())
{
return (FRigVMClient*)EditorData->GetRigVMClient();
}
return nullptr;
}