Skip to content

Commit

Permalink
Use layer.fqid for landmark bucket creation and conflation (internal-…
Browse files Browse the repository at this point in the history
…920)
  • Loading branch information
jtorresfabra authored and stepankuzmin committed Nov 7, 2023
1 parent 39c7a8f commit 88f04c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 3d-style/source/tiled_3d_model_worker_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Tiled3dWorkerTile {
const bucket = new Tiled3dModelBucket(nodes, tileID, extensions && extensions.includes("MAPBOX_mesh_features"), this.brightness);
// Upload to GPU without waiting for evaluation if we are in diffuse path
if (!hasMapboxMeshFeatures) bucket.needsUpload = true;
buckets[layer.id] = bucket;
buckets[layer.fqid] = bucket;
// do the first evaluation in the worker to avoid stuttering
// $FlowIgnore[incompatible-call] layer here is always a ModelStyleLayer
bucket.evaluate(layer);
Expand Down
2 changes: 1 addition & 1 deletion src/render/painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ class Painter {
continue;
}

conflationSources.push({layer: layer.id, cache: sourceCache});
conflationSources.push({layer: layer.fqid, cache: sourceCache});
}

this.replacementSource.setSources(conflationSources);
Expand Down

0 comments on commit 88f04c3

Please sign in to comment.