From 68de60c8d04c58a51d018923e989989d94f3db1b Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Thu, 22 Aug 2019 12:28:54 +0300 Subject: [PATCH] [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` --- src/mbgl/style/layers/fill_layer_impl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mbgl/style/layers/fill_layer_impl.cpp b/src/mbgl/style/layers/fill_layer_impl.cpp index 4df32e02f..45e350e00 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(other); return filter != impl.filter || visibility != impl.visibility || + paint.get().value != impl.paint.get().value || paint.hasDataDrivenPropertyDifference(impl.paint); }