|
@@ -201,6 +201,9 @@ public class TerrainLodControl extends AbstractControl {
|
|
|
|
|
|
protected void prepareTerrain() {
|
|
protected void prepareTerrain() {
|
|
TerrainQuad terrain = (TerrainQuad)getSpatial();
|
|
TerrainQuad terrain = (TerrainQuad)getSpatial();
|
|
|
|
+ if(terrain == null){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
terrain.cacheTerrainTransforms();// cache the terrain's world transforms so they can be accessed on the separate thread safely
|
|
terrain.cacheTerrainTransforms();// cache the terrain's world transforms so they can be accessed on the separate thread safely
|
|
}
|
|
}
|
|
|
|
|