2019-12-27 09:26:59 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2018-05-29 18:32:14 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
2022-09-09 11:36:22 -04:00
|
|
|
|
|
|
|
|
#include "GeometryCacheModule.h"
|
|
|
|
|
#include "GeometryCacheTrackEditor.h"
|
|
|
|
|
#include "ISequencerModule.h"
|
2018-05-29 18:32:14 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The public interface to this module
|
|
|
|
|
*/
|
|
|
|
|
class FGeometryCacheSequencerModule : public IModuleInterface
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
virtual void StartupModule() override
|
|
|
|
|
{
|
2022-09-09 11:36:22 -04:00
|
|
|
LLM_SCOPE_BYTAG(GeometryCache);
|
2018-05-29 18:32:14 -04:00
|
|
|
|
|
|
|
|
ISequencerModule& SequencerModule = FModuleManager::Get().LoadModuleChecked<ISequencerModule>("Sequencer");
|
|
|
|
|
TrackEditorBindingHandle = SequencerModule.RegisterTrackEditor(FOnCreateTrackEditor::CreateStatic(&FGeometryCacheTrackEditor::CreateTrackEditor));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
virtual void ShutdownModule() override
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ISequencerModule* SequencerModulePtr = FModuleManager::Get().GetModulePtr<ISequencerModule>("Sequencer");
|
|
|
|
|
if (SequencerModulePtr)
|
|
|
|
|
{
|
|
|
|
|
SequencerModulePtr->UnRegisterTrackEditor(TrackEditorBindingHandle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FDelegateHandle TrackEditorBindingHandle;
|
|
|
|
|
};
|
|
|
|
|
|
2023-01-25 02:42:36 -05:00
|
|
|
|
|
|
|
|
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#endif
|