Skip to content

Commit

Permalink
fix(ZkMesh): rename ZkPolygon_getPolygonIndices to `ZkPolygon_getFe…
Browse files Browse the repository at this point in the history
…atureIndices`
  • Loading branch information
lmichaelis committed Dec 9, 2023
1 parent 895291c commit 8c9340a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/zenkit-capi/Mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Mesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
}

Expand Down

0 comments on commit 8c9340a

Please sign in to comment.