Skip to content

Commit

Permalink
fix(C3DTFeature): use correct interleaved buffer getter
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyGlt committed Jul 4, 2024
1 parent 6245e18 commit 80ad0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layer/C3DTilesLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class C3DTilesLayer extends GeometryLayer {
// face is a Face3 object of THREE which is a
// triangular face. face.a is its first vertex
const vertex = closestIntersect.face.a;
const batchID = closestIntersect.object.geometry.attributes._BATCHID.array[vertex];
const batchID = closestIntersect.object.geometry.attributes._BATCHID.getX(vertex);

return this.tilesC3DTileFeatures.get(tileId).get(batchID);
}
Expand Down

0 comments on commit 80ad0a1

Please sign in to comment.