mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-04 17:35:42 +02:00
Return immediately instead of failing to clip polygons to the z0 tile
This commit is contained in:
@@ -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++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user