From afe86a314d6e9c948ea6f3f42ddeeb42e1e68dcf Mon Sep 17 00:00:00 2001 From: empirephoenix Date: Fri, 23 Jun 2017 12:50:03 +0200 Subject: [PATCH] Revert "Backport changes from the master branch." --- .../com/jme3/shadow/AbstractShadowFilter.java | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java b/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java index e78278746..f882ac580 100644 --- a/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java +++ b/jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java @@ -45,8 +45,6 @@ import com.jme3.renderer.RenderManager; import com.jme3.renderer.ViewPort; import com.jme3.renderer.queue.RenderQueue; import com.jme3.texture.FrameBuffer; -import com.jme3.util.clone.Cloner; -import com.jme3.util.clone.JmeCloneable; import java.io.IOException; @@ -57,8 +55,7 @@ import java.io.IOException; * * @author Rémy Bouquet aka Nehon */ -public abstract class AbstractShadowFilter extends Filter implements Cloneable, - JmeCloneable { +public abstract class AbstractShadowFilter extends Filter { protected T shadowRenderer; protected ViewPort viewPort; @@ -317,21 +314,6 @@ public abstract class AbstractShadowFilter ext public void read(JmeImporter im) throws IOException { super.read(im); InputCapsule ic = im.getCapsule(this); - } - - @Override - public AbstractShadowFilter jmeClone() { - try { - return (AbstractShadowFilter) super.clone(); - } catch (final CloneNotSupportedException e) { - throw new RuntimeException(e); - } - } - @Override - public void cloneFields(final Cloner cloner, final Object original) { - material = cloner.clone(material); - shadowRenderer = cloner.clone(shadowRenderer); - shadowRenderer.setPostShadowMaterial(material); } }