Skip to content

Commit

Permalink
fix(3DTiles) tileId == 0 can update style
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinMachado authored and jailln committed Apr 21, 2023
1 parent b39edf8 commit 11582c9
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 @@ -359,7 +359,7 @@ class C3DTilesLayer extends GeometryLayer {

const currentMaterials = [];// list materials used for this update
this.object3d.traverse((object) => {
if (object.tileId && this.tilesC3DTileFeatures.has(object.tileId)) {
if (this.tilesC3DTileFeatures.has(object.tileId)) {
// object is a tile content
const c3DTileFeatures = this.tilesC3DTileFeatures.get(object.tileId);
object.traverse((child) => {
Expand Down

0 comments on commit 11582c9

Please sign in to comment.