Skip to content

Commit 5d62616

Browse files
stephanheiglgithub-actions[bot]
authored andcommitted
Use correct scope for clipping and replacement updates of model layer.
GitOrigin-RevId: bff565ad42564aaaad277de6a25ee2dec7737606
1 parent 69cf2f5 commit 5d62616

File tree

3 files changed

+476
-1
lines changed

3 files changed

+476
-1
lines changed

3d-style/render/draw_model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ function drawVectorLayerModels(painter: Painter, source: SourceCache, layer: Mod
722722

723723
const clippable = painter.conflationActive && Object.keys(bucket.instancesPerModel).length > 0 && painter.style.isLayerClipped(layer, source.getSource());
724724
if (clippable) {
725-
if (bucket.updateReplacement(coord, painter.replacementSource, layerIndex, scope)) {
725+
if (bucket.updateReplacement(coord, painter.replacementSource, layerIndex, layer.scope)) {
726726
bucket.uploaded = false;
727727
bucket.upload(painter.context);
728728
}
107 KB
Loading

0 commit comments

Comments
 (0)