diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-22 12:28:54 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-22 14:27:27 +0300 |
commit | 68de60c8d04c58a51d018923e989989d94f3db1b (patch) | |
tree | 0f03560dc221ef1df56ff2265bf55e9355787d48 | |
parent | 81111c955bf546f3cc56f32576024b872ad3a5c1 (diff) | |
download | qtlocation-mapboxgl-68de60c8d04c58a51d018923e989989d94f3db1b.tar.gz |
[core] Fill layer pattern change must cause re-layout
Otherwise, pattern properties update is not taken in action.
This caused the following render tests failure:
`build/mbgl-render-test runtime-styling/layer-add-fill regressions/mapbox-gl-js#3107 --recycle-map`
-rw-r--r-- | src/mbgl/style/layers/fill_layer_impl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/style/layers/fill_layer_impl.cpp b/src/mbgl/style/layers/fill_layer_impl.cpp index 4df32e02fa..45e350e00e 100644 --- a/src/mbgl/style/layers/fill_layer_impl.cpp +++ b/src/mbgl/style/layers/fill_layer_impl.cpp @@ -8,6 +8,7 @@ bool FillLayer::Impl::hasLayoutDifference(const Layer::Impl& other) const { const auto& impl = static_cast<const style::FillLayer::Impl&>(other); return filter != impl.filter || visibility != impl.visibility || + paint.get<FillPattern>().value != impl.paint.get<FillPattern>().value || paint.hasDataDrivenPropertyDifference(impl.paint); } |