소스 검색

cloneForSpatial in LodControl now properly calls super.cloneForSpatial

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10740 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om 12 년 전
부모
커밋
07477b0be8
1개의 변경된 파일6개의 추가작업 그리고 10개의 파일을 삭제
  1. 6 10
      engine/src/core/com/jme3/scene/control/LodControl.java

+ 6 - 10
engine/src/core/com/jme3/scene/control/LodControl.java

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