Backout changelist 18296456, it's causing crashes and rendering issues.

Jiras FORT-430538, FORT-411948, UE-110622 will need to be reopened
[FYI] Sebastien.Lussier

#ROBOMERGE-OWNER: ben.woodhouse
#ROBOMERGE-AUTHOR: ben.woodhouse
#ROBOMERGE-SOURCE: CL 18299847 via CL 18299850 via CL 18299851 via CL 18301113 via CL 18301114 via CL 18301458 via CL 18301492
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18301519 by ben woodhouse in ue5-release-engine-test branch]
This commit is contained in:
ben woodhouse
2021-11-26 14:28:05 -05:00
parent c1511879e5
commit eb29a8292a
9 changed files with 307 additions and 441 deletions
@@ -14,7 +14,6 @@
#include "LandscapeProxy.h"
#include "Landscape.h"
#include "LandscapeRender.h"
#include "LandscapeSplineActor.h"
#include "Engine/Texture2D.h"
#include "EngineUtils.h"
@@ -29,13 +28,6 @@ public:
/** IModuleInterface implementation */
void StartupModule() override;
void ShutdownModule() override;
private:
void OnPostEngineInit();
void OnEnginePreExit();
private:
TSharedPtr<FLandscapeSceneViewExtension, ESPMode::ThreadSafe> SceneViewExtension;
};
/**
@@ -204,27 +196,12 @@ void FLandscapeModule::StartupModule()
FWorldDelegates::OnPostDuplicate.AddStatic(
&WorldDuplicateEventFunction
);
FCoreDelegates::OnPostEngineInit.AddRaw(this, &FLandscapeModule::OnPostEngineInit);
FCoreDelegates::OnEnginePreExit.AddRaw(this, &FLandscapeModule::OnEnginePreExit);
}
void FLandscapeModule::OnPostEngineInit()
{
check(!SceneViewExtension.IsValid());
SceneViewExtension = FSceneViewExtensions::NewExtension<FLandscapeSceneViewExtension>();
}
void FLandscapeModule::OnEnginePreExit()
{
check(SceneViewExtension.IsValid());
SceneViewExtension.Reset();
}
void FLandscapeModule::ShutdownModule()
{
FCoreDelegates::OnEnginePreExit.RemoveAll(this);
FCoreDelegates::OnPostEngineInit.RemoveAll(this);
// This function may be called during shutdown to clean up your module. For modules that support dynamic reloading,
// we call this function before unloading the module.
}
IMPLEMENT_MODULE(FLandscapeModule, Landscape);