Files
UnrealEngineUWP/Engine/Source/Runtime/Navmesh/Navmesh.Build.cs
Stephen Holmes 70dca410ee Fix for dtOffMeshSegmentConnection::height is never serialized. It turns out this variable is never used and the whole off mesh segment connection feature is unsuported and has known issues that were never solved at the conceptual level.
I've added comments to make it clearer this feature is unsupported and removed the height variable that isn't used to simplify and tidy up the existing code.

#jira UE-135621
#review-19809739
#rb  Mieszko.Zielinski
#preflight 625ee03d034d8924cdcc72f1

[CL 19826653 by Stephen Holmes in ue5-main branch]
2022-04-20 03:33:40 -04:00

35 lines
858 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
namespace UnrealBuildTool.Rules
{
public class Navmesh : ModuleRules
{
public Navmesh(ReadOnlyTargetRules Target) : base(Target)
{
PublicIncludePaths.Add("Runtime/Navmesh/Public");
PrivateIncludePaths.Add("Runtime/Navmesh/Private");
PrivateDependencyModuleNames.AddRange(new string[] { "Core" });
// This is an unsupported feature and has not been finished to production quality.
if (Target.bCompileNavmeshSegmentLinks)
{
PublicDefinitions.Add("WITH_NAVMESH_SEGMENT_LINKS=1");
}
else
{
PublicDefinitions.Add("WITH_NAVMESH_SEGMENT_LINKS=0");
}
if (Target.bCompileNavmeshClusterLinks)
{
PublicDefinitions.Add("WITH_NAVMESH_CLUSTER_LINKS=1");
}
else
{
PublicDefinitions.Add("WITH_NAVMESH_CLUSTER_LINKS=0");
}
}
}
}