cloneForSpatial in LodControl now properly calls super.cloneForSpatial
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10740 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
b61192d71e
commit
07477b0be8
@ -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…
x
Reference in New Issue
Block a user