2
0
Эх сурвалжийг харах

TerrainLodControl no longer caches camera positions. Issue #121

sploreg 11 жил өмнө
parent
commit
7df0b41585

+ 4 - 5
jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/TerrainLodControl.java

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