TerrainLodControl no longer caches camera positions. Issue #121

This commit is contained in:
sploreg 2014-04-02 14:49:29 -07:00
parent d7b3d580ed
commit 7df0b41585

View File

@ -160,11 +160,10 @@ public class TerrainLodControl extends AbstractControl {
} }
if (cameras != null) { if (cameras != null) {
if (cameraLocations.isEmpty() && !cameras.isEmpty()) { cameraLocations.clear();
for (Camera c : cameras) // populate them for (Camera c : cameras) // populate them
{ {
cameraLocations.add(c.getLocation()); cameraLocations.add(c.getLocation());
}
} }
updateLOD(cameraLocations, lodCalculator); updateLOD(cameraLocations, lodCalculator);
} }