mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-02 09:18:21 +00:00
Return immediately instead of failing to clip polygons to the z0 tile
This commit is contained in:
parent
43b27e2dfd
commit
8fec4ef9fc
4
tile.cc
4
tile.cc
@ -477,6 +477,10 @@ static drawvec clip_poly1(drawvec &geom, int z, int detail) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
drawvec clip_poly(drawvec &geom, int z, int detail) {
|
drawvec clip_poly(drawvec &geom, int z, int detail) {
|
||||||
|
if (z == 0) {
|
||||||
|
return geom;
|
||||||
|
}
|
||||||
|
|
||||||
drawvec out;
|
drawvec out;
|
||||||
|
|
||||||
for (unsigned i = 0; i < geom.size(); i++) {
|
for (unsigned i = 0; i < geom.size(); i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user