2022-04-19 06:28:48 -04:00
|
|
|
|
// 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);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-05-31 04:27:20 -04:00
|
|
|
|
FRigVMClient* UDataInterfaceGraph_EdGraph::GetRigVMClient() const
|
2022-04-19 06:28:48 -04:00
|
|
|
|
{
|
|
|
|
|
|
if (const UDataInterfaceGraph_EditorData* EditorData = GetTypedOuter<UDataInterfaceGraph_EditorData>())
|
|
|
|
|
|
{
|
2022-05-31 04:27:20 -04:00
|
|
|
|
return (FRigVMClient*)EditorData->GetRigVMClient();
|
2022-04-19 06:28:48 -04:00
|
|
|
|
}
|
|
|
|
|
|
return nullptr;
|
|
|
|
|
|
}
|