Skip to content

Commit

Permalink
fix(Material): correctly return the ith material, not the first
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Dec 25, 2023
1 parent 2129c61 commit a08040c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ ZkMaterial const* ZkMesh_getMaterial(ZkMesh const* slf, ZkSize i) {
return nullptr;
}

return &slf->materials[0];
return &slf->materials[i];
}

void ZkMesh_enumerateMaterials(ZkMesh const* slf, ZkMaterialEnumerator cb, void* ctx) {
Expand Down

0 comments on commit a08040c

Please sign in to comment.