cloneForSpatial in LodControl now properly calls super.cloneForSpatial

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10740 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 11 years ago
parent b61192d71e
commit 07477b0be8
  1. 6
      engine/src/core/com/jme3/scene/control/LodControl.java

@ -135,15 +135,11 @@ public class LodControl extends AbstractControl implements Cloneable {
@Override
public Control cloneForSpatial(Spatial spatial) {
try {
LodControl clone = (LodControl) super.clone();
LodControl clone = (LodControl) super.cloneForSpatial(spatial);
clone.lastDistance = 0;
clone.lastLevel = 0;
clone.numTris = numTris != null ? numTris.clone() : null;
return clone;
} catch (CloneNotSupportedException ex) {
throw new AssertionError();
}
}
@Override

Loading…
Cancel
Save