From 40c001593c6222f83a9bbca60f9bd9df737fd60c Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Tue, 5 Aug 2025 16:09:32 -0400 Subject: [PATCH] Removed unnecessary accessor for offMeshConRads --- RecastDemo/Include/InputGeom.h | 1 - RecastDemo/Source/Sample_SoloMesh.cpp | 2 +- RecastDemo/Source/Sample_TempObstacles.cpp | 2 +- RecastDemo/Source/Sample_TileMesh.cpp | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/RecastDemo/Include/InputGeom.h b/RecastDemo/Include/InputGeom.h index 068e5577..b9db28e7 100644 --- a/RecastDemo/Include/InputGeom.h +++ b/RecastDemo/Include/InputGeom.h @@ -139,7 +139,6 @@ public: /// @name Off-Mesh connections. ///@{ [[nodiscard]] const float* getOffMeshConnectionVerts() const { return offMeshConVerts; } - [[nodiscard]] const float* getOffMeshConnectionRads() const { return offMeshConRads; } void addOffMeshConnection( const float* spos, const float* epos, diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 4f77dece..380962cd 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -708,7 +708,7 @@ bool Sample_SoloMesh::build() params.detailTris = detailMesh->tris; params.detailTriCount = detailMesh->ntris; params.offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); - params.offMeshConRad = inputGeometry->getOffMeshConnectionRads(); + params.offMeshConRad = inputGeometry->offMeshConRads; params.offMeshConDir = inputGeometry->offMeshConDirs; params.offMeshConAreas = inputGeometry->offMeshConAreas; params.offMeshConFlags = inputGeometry->offMeshConFlags; diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index eb09a18b..5e7fa767 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -485,7 +485,7 @@ struct MeshProcess : dtTileCacheMeshProcess if (inputGeometry) { params->offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); - params->offMeshConRad = inputGeometry->getOffMeshConnectionRads(); + params->offMeshConRad = inputGeometry->offMeshConRads; params->offMeshConDir = inputGeometry->offMeshConDirs; params->offMeshConAreas = inputGeometry->offMeshConAreas; params->offMeshConFlags = inputGeometry->offMeshConFlags; diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index 8c2645a4..d8884fd0 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -1208,7 +1208,7 @@ unsigned char* Sample_TileMesh::buildTileMesh( params.detailTris = detailPolyMesh->tris; params.detailTriCount = detailPolyMesh->ntris; params.offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); - params.offMeshConRad = inputGeometry->getOffMeshConnectionRads(); + params.offMeshConRad = inputGeometry->offMeshConRads; params.offMeshConDir = inputGeometry->offMeshConDirs; params.offMeshConAreas = inputGeometry->offMeshConAreas; params.offMeshConFlags = inputGeometry->offMeshConFlags;