#jira UE-91577

Clear landscape cached heightfield when the landscape is changed. (Contributed by MichaelBell)
PR #6834
#rb none

#ROBOMERGE-SOURCE: CL 14407511 in //UE4/Release-4.26/... via CL 14407522
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v742-14376270)

[CL 14407524 by jeremy moore in Main branch]
This commit is contained in:
MichaelBell
2020-09-28 16:14:45 -04:00
committed by jeremy moore
parent a31a1e578b
commit 3091848e20

View File

@@ -2121,6 +2121,8 @@ bool ULandscapeMeshCollisionComponent::RecreateCollision()
{
MeshRef = NULL;
MeshGuid = FGuid();
CachedHeightFieldSamples.Heights.Empty();
CachedHeightFieldSamples.Holes.Empty();
}
return Super::RecreateCollision();