From 9e02d72e340aef539adc6be4d8aad744fd93b3f0 Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Tue, 5 Aug 2025 16:03:36 -0400 Subject: [PATCH] Removed unnecessary accessor for offMeshConFlags --- 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 39a1122f..c2a1425f 100644 --- a/RecastDemo/Include/InputGeom.h +++ b/RecastDemo/Include/InputGeom.h @@ -141,7 +141,6 @@ public: [[nodiscard]] const float* getOffMeshConnectionVerts() const { return offMeshConVerts; } [[nodiscard]] const float* getOffMeshConnectionRads() const { return offMeshConRads; } [[nodiscard]] const unsigned char* getOffMeshConnectionDirs() const { return offMeshConDirs; } - [[nodiscard]] const unsigned char* getOffMeshConnectionAreas() const { return offMeshConAreas; } void addOffMeshConnection( const float* spos, const float* epos, diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 11f330c5..3ae58f83 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -710,7 +710,7 @@ bool Sample_SoloMesh::build() params.offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); params.offMeshConRad = inputGeometry->getOffMeshConnectionRads(); params.offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); - params.offMeshConAreas = inputGeometry->getOffMeshConnectionAreas(); + params.offMeshConAreas = inputGeometry->offMeshConAreas; params.offMeshConFlags = inputGeometry->offMeshConFlags; params.offMeshConUserID = inputGeometry->offMeshConId; params.offMeshConCount = inputGeometry->offMeshConCount; diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index 22665de7..7114bb27 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -487,7 +487,7 @@ struct MeshProcess : dtTileCacheMeshProcess params->offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); params->offMeshConRad = inputGeometry->getOffMeshConnectionRads(); params->offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); - params->offMeshConAreas = inputGeometry->getOffMeshConnectionAreas(); + params->offMeshConAreas = inputGeometry->offMeshConAreas; params->offMeshConFlags = inputGeometry->offMeshConFlags; params->offMeshConUserID = inputGeometry->offMeshConId; params->offMeshConCount = inputGeometry->offMeshConCount; diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index 69bdd78e..802131cf 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -1210,7 +1210,7 @@ unsigned char* Sample_TileMesh::buildTileMesh( params.offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); params.offMeshConRad = inputGeometry->getOffMeshConnectionRads(); params.offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); - params.offMeshConAreas = inputGeometry->getOffMeshConnectionAreas(); + params.offMeshConAreas = inputGeometry->offMeshConAreas; params.offMeshConFlags = inputGeometry->offMeshConFlags; params.offMeshConUserID = inputGeometry->offMeshConId; params.offMeshConCount = inputGeometry->offMeshConCount;