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 May 6, 2024
1 parent 60e1f4a commit 3397800
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 @@ -257,7 +257,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 3397800

Please sign in to comment.