Skip to content

Commit ba68c7a

Browse files
author
pdavidc
committed
Repaired the terrain tessellator's handling of 2D projections with longitude limits. Closes NASAWorldWind#72.
1 parent 52afdee commit ba68c7a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/gov/nasa/worldwind/terrain/RectangularTessellator.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,13 @@ protected ArrayList<RectTile> createTopLevelTiles(DrawContext dc)
490490
lon = Angle.POS180;
491491

492492
Sector tileSector = new Sector(lastLat, lat, lastLon, lon);
493+
boolean skipTile = dc.is2DGlobe() && this.skipTile(dc, tileSector);
493494

494-
if (dc.is2DGlobe() && this.skipTile(dc, tileSector))
495-
continue;
495+
if (!skipTile)
496+
{
497+
tops.add(this.createTile(dc, tileSector, 0));
498+
}
496499

497-
tops.add(this.createTile(dc, tileSector, 0));
498500
lastLon = lon;
499501
}
500502
lastLat = lat;

0 commit comments

Comments
 (0)