diff options
author | Ansis Brammanis <ansis@mapbox.com> | 2017-10-25 16:05:14 -0400 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2017-10-25 15:07:10 -0700 |
commit | 26a3776c9e97a510dbb9f30a14167e1c21bb2089 (patch) | |
tree | 4a62652e18f14667d239caf50a28806d4ee4de81 | |
parent | 6f7b29dd5f168cbd3b498c592afe380c82f610cd (diff) | |
download | qtlocation-mapboxgl-26a3776c9e97a510dbb9f30a14167e1c21bb2089.tar.gz |
fix collision box opacity [skip ci]
-rw-r--r-- | src/mbgl/text/placement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/text/placement.cpp b/src/mbgl/text/placement.cpp index c1562f61bc..9379d0072f 100644 --- a/src/mbgl/text/placement.cpp +++ b/src/mbgl/text/placement.cpp @@ -239,8 +239,8 @@ void Placement::updateBucketOpacities(SymbolBucket& bucket, gl::Context& context } } }; - updateCollisionBox(symbolInstance.textCollisionFeature, symbolInstance.placedText); - updateCollisionBox(symbolInstance.iconCollisionFeature, symbolInstance.placedIcon); + updateCollisionBox(symbolInstance.textCollisionFeature, opacityState.text.targetOpacity == 1.0); + updateCollisionBox(symbolInstance.iconCollisionFeature, opacityState.icon.targetOpacity == 1.0); } if (bucket.hasTextData()) context.updateVertexBuffer(*bucket.text.opacityVertexBuffer, std::move(bucket.text.opacityVertices)); |