Files
UnrealEngineUWP/Engine/Plugins/Experimental/GeometryCollectionPlugin/Source/GeometryCollectionTracks/Private/GeometryCollectionTracksModule.cpp
Ori Cohen d0479a0441 Workaround so that we can use live coding with engine geometry collection module. This is a hack until explicit load is not needed
#rb Cedric.Caillaud
#preflight 62952ddffb0fca7e580e9636

[CL 20433052 by Ori Cohen in ue5-main branch]
2022-05-30 17:42:34 -04:00

25 lines
920 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "GeometryCollectionTracksModule.h"
#if WITH_EDITOR
#include "GeometryCollectionSequencerModule.h"
#include "GeometryCollection/GeometryCollectionComponentPlugin.h"
#endif // WITH_EDITOR
IMPLEMENT_MODULE(FGeometryCollectionTracksModule, GeometryCollectionTracks)
void FGeometryCollectionTracksModule::StartupModule()
{
#if WITH_EDITOR
FGeometryCollectionSequencerModule& Module = FModuleManager::LoadModuleChecked<FGeometryCollectionSequencerModule>(TEXT("GeometryCollectionSequencer"));
//HACK: The geometry collection engine module will not be added to live coding without this.
//We should probably move the engine module into this plugin or something, but for now this makes it so we can change the GC engine module and use live coding
IGeometryCollectionComponentPlugin::Get();
#endif
}
void FGeometryCollectionTracksModule::ShutdownModule()
{
}