diff --git a/RecastDemo/Include/InputGeom.h b/RecastDemo/Include/InputGeom.h index c2a1425f..068e5577 100644 --- a/RecastDemo/Include/InputGeom.h +++ b/RecastDemo/Include/InputGeom.h @@ -140,7 +140,6 @@ public: ///@{ [[nodiscard]] const float* getOffMeshConnectionVerts() const { return offMeshConVerts; } [[nodiscard]] const float* getOffMeshConnectionRads() const { return offMeshConRads; } - [[nodiscard]] const unsigned char* getOffMeshConnectionDirs() const { return offMeshConDirs; } void addOffMeshConnection( const float* spos, const float* epos, diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 3ae58f83..4f77dece 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -709,7 +709,7 @@ bool Sample_SoloMesh::build() params.detailTriCount = detailMesh->ntris; params.offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); params.offMeshConRad = inputGeometry->getOffMeshConnectionRads(); - params.offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); + params.offMeshConDir = inputGeometry->offMeshConDirs; params.offMeshConAreas = inputGeometry->offMeshConAreas; params.offMeshConFlags = inputGeometry->offMeshConFlags; params.offMeshConUserID = inputGeometry->offMeshConId; diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index 7114bb27..eb09a18b 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -486,7 +486,7 @@ struct MeshProcess : dtTileCacheMeshProcess { params->offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); params->offMeshConRad = inputGeometry->getOffMeshConnectionRads(); - params->offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); + params->offMeshConDir = inputGeometry->offMeshConDirs; params->offMeshConAreas = inputGeometry->offMeshConAreas; params->offMeshConFlags = inputGeometry->offMeshConFlags; params->offMeshConUserID = inputGeometry->offMeshConId; diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index 802131cf..8c2645a4 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -1209,7 +1209,7 @@ unsigned char* Sample_TileMesh::buildTileMesh( params.detailTriCount = detailPolyMesh->ntris; params.offMeshConVerts = inputGeometry->getOffMeshConnectionVerts(); params.offMeshConRad = inputGeometry->getOffMeshConnectionRads(); - params.offMeshConDir = inputGeometry->getOffMeshConnectionDirs(); + params.offMeshConDir = inputGeometry->offMeshConDirs; params.offMeshConAreas = inputGeometry->offMeshConAreas; params.offMeshConFlags = inputGeometry->offMeshConFlags; params.offMeshConUserID = inputGeometry->offMeshConId;