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;