Adding @Override to cloneForSpatial() methods in terrain lib.

cleanup_build_scripts
Paul Speed 9 years ago
parent 20f62cbd64
commit 2b81011668
  1. 1
      jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/NormalRecalcControl.java
  2. 1
      jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/TerrainLodControl.java

@ -67,6 +67,7 @@ public class NormalRecalcControl extends AbstractControl {
} }
@Override
public Control cloneForSpatial(Spatial spatial) { public Control cloneForSpatial(Spatial spatial) {
NormalRecalcControl control = new NormalRecalcControl(terrain); NormalRecalcControl control = new NormalRecalcControl(terrain);
control.setSpatial(spatial); control.setSpatial(spatial);

@ -301,6 +301,7 @@ public class TerrainLodControl extends AbstractControl {
@Override
public Control cloneForSpatial(Spatial spatial) { public Control cloneForSpatial(Spatial spatial) {
if (spatial instanceof Terrain) { if (spatial instanceof Terrain) {
List<Camera> cameraClone = new ArrayList<Camera>(); List<Camera> cameraClone = new ArrayList<Camera>();

Loading…
Cancel
Save