From 07477b0be8db8164c7899776f4d465538d13aa75 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sun, 28 Jul 2013 19:22:16 +0000 Subject: [PATCH] cloneForSpatial in LodControl now properly calls super.cloneForSpatial git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10740 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../core/com/jme3/scene/control/LodControl.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/engine/src/core/com/jme3/scene/control/LodControl.java b/engine/src/core/com/jme3/scene/control/LodControl.java index ca9a8919b..030ccbb3a 100644 --- a/engine/src/core/com/jme3/scene/control/LodControl.java +++ b/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) {