BuildingRenderer: deprecate redundant S3DB render from parent tiles

This commit is contained in:
Emux 2018-02-06 15:40:18 +02:00
parent d76ac00403
commit 25aa1329fc
No known key found for this signature in database
GPG Key ID: 89C6921D7AF2BDD0

View File

@ -1,5 +1,6 @@
/* /*
* Copyright 2013 Hannes Janetzek * Copyright 2013 Hannes Janetzek
* Copyright 2018 devemux86
* *
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
* *
@ -142,18 +143,15 @@ public class BuildingRenderer extends ExtrusionRenderer {
compiled = true; compiled = true;
} }
} }
} else if (zoom == mZoomMax + 1) { }
/* special case for s3db: render from parent tiles */ /*else if (zoom == mZoomMax + 1) {
// special case for s3db: render from parent tiles
for (int i = 0; i < mTileSet.cnt; i++) { for (int i = 0; i < mTileSet.cnt; i++) {
MapTile t = tiles[i].node.parent(); MapTile t = tiles[i].node.parent();
if (t == null) if (t == null)
continue; continue;
// for (MapTile c : mTiles)
// if (c == t)
// continue O;
ExtrusionBuckets ebs = getBuckets(t); ExtrusionBuckets ebs = getBuckets(t);
if (ebs == null) if (ebs == null)
continue; continue;
@ -166,7 +164,8 @@ public class BuildingRenderer extends ExtrusionRenderer {
compiled = true; compiled = true;
} }
} }
} else if (zoom == mZoomMin - 1) { }*/
else if (zoom == mZoomMin - 1) {
/* check if proxy children are ready */ /* check if proxy children are ready */
for (int i = 0; i < mTileSet.cnt; i++) { for (int i = 0; i < mTileSet.cnt; i++) {
MapTile t = tiles[i]; MapTile t = tiles[i];