Files
UnrealEngineUWP/Engine/Source/Runtime/Landscape/Private/LandscapeInfo.cpp
Richard Malo cc6d5877bc Properly release WorldPartition Actor Handles & References (fixes crash when closing world)
#rb jeanfrancois.dube

[CL 15023443 by Richard Malo in ue5-main branch]
2021-01-08 16:03:23 -04:00

28 lines
672 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "LandscapeInfo.h"
#include "LandscapeLayerInfoObject.h"
LANDSCAPE_API FLandscapeInfoLayerSettings::FLandscapeInfoLayerSettings(ULandscapeLayerInfoObject* InLayerInfo, class ALandscapeProxy* InProxy)
: LayerInfoObj(InLayerInfo)
, LayerName((InLayerInfo != NULL) ? InLayerInfo->LayerName : NAME_None)
#if WITH_EDITORONLY_DATA
, ThumbnailMIC(NULL)
, Owner(InProxy)
, DebugColorChannel(0)
, bValid(false)
#endif
{
}
#if WITH_EDITOR
void ULandscapeInfo::BeginDestroy()
{
// Release WorldPartition Actor Handles
ProxyHandles.Empty();
SplineHandles.Empty();
Super::BeginDestroy();
}
#endif // WITH_EDITOR