diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-03-29 17:49:01 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-04-02 17:56:16 +0300 |
commit | ebe6f7dea33c59b91464f7c6c905600184324f3c (patch) | |
tree | 2ca2b78bbf5b82b3dc51cf8ca0abdff183b55571 /src/mbgl/style/layers/layer.cpp.ejs | |
parent | 45e8154d334aa967ac22910cad1f3d96f4c8e72b (diff) | |
download | qtlocation-mapboxgl-ebe6f7dea33c59b91464f7c6c905600184324f3c.tar.gz |
[core] Remove RenderLinePaintProperties
This patch removes the `RenderLinePaintProperties` by
making `LineFloorWidth` part of the `style::LinePaintProperties`.
It normalizes paint properties evaluation for the line layer.
Diffstat (limited to 'src/mbgl/style/layers/layer.cpp.ejs')
-rw-r--r-- | src/mbgl/style/layers/layer.cpp.ejs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/style/layers/layer.cpp.ejs b/src/mbgl/style/layers/layer.cpp.ejs index fcae615fe0..201189c849 100644 --- a/src/mbgl/style/layers/layer.cpp.ejs +++ b/src/mbgl/style/layers/layer.cpp.ejs @@ -153,6 +153,9 @@ void <%- camelize(type) %>Layer::set<%- camelize(property.name) %>(<%- propertyV return; auto impl_ = mutableImpl(); impl_->paint.template get<<%- camelize(property.name) %>>().value = value; +<% if (property.name === 'line-width') { -%> + impl_->paint.template get<LineFloorWidth>().value = value; +<% } -%> baseImpl = std::move(impl_); observer->onLayerChanged(*this); } |