From 8c9340a7333aea71aaa512296c81ed94cf666b15 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Sat, 9 Dec 2023 09:28:00 +0100 Subject: [PATCH] fix(ZkMesh): rename `ZkPolygon_getPolygonIndices` to `ZkPolygon_getFeatureIndices` --- include/zenkit-capi/Mesh.h | 2 +- src/Mesh.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/zenkit-capi/Mesh.h b/include/zenkit-capi/Mesh.h index 3547d7d..23f1b64 100644 --- a/include/zenkit-capi/Mesh.h +++ b/include/zenkit-capi/Mesh.h @@ -61,7 +61,7 @@ ZKC_API ZkVec3f ZkLightMap_getNormal(ZkLightMap const* slf, ZkSize i); ZKC_API uint32_t ZkPolygon_getMaterialIndex(ZkPolygon const* slf); ZKC_API int32_t ZkPolygon_getLightMapIndex(ZkPolygon const* slf); ZKC_API uint32_t const* ZkPolygon_getPositionIndices(ZkPolygon const* slf, ZkSize* count); -ZKC_API uint32_t const* ZkPolygon_getPolygonIndices(ZkPolygon const* slf, ZkSize* count); +ZKC_API uint32_t const* ZkPolygon_getFeatureIndices(ZkPolygon const* slf, ZkSize* count); ZKC_API ZkBool ZkPolygon_getIsPortal(ZkPolygon const* slf); ZKC_API ZkBool ZkPolygon_getIsOccluder(ZkPolygon const* slf); ZKC_API ZkBool ZkPolygon_getIsSector(ZkPolygon const* slf); diff --git a/src/Mesh.cc b/src/Mesh.cc index 9cb2372..63696a2 100644 --- a/src/Mesh.cc +++ b/src/Mesh.cc @@ -270,9 +270,9 @@ uint32_t const* ZkPolygon_getPositionIndices(ZkPolygon const* slf, ZkSize* count return slf->vertices.data(); } -uint32_t const* ZkPolygon_getPolygonIndices(ZkPolygon const* slf, ZkSize* count) { +uint32_t const* ZkPolygon_getFeatureIndices(ZkPolygon const* slf, ZkSize* count) { if (slf == nullptr || count == nullptr) { - ZKC_LOG_WARN_NULL("ZkPolygon_getPolygonIndices"); + ZKC_LOG_WARN_NULL("ZkPolygon_getFeatureIndices"); return {}; }