diff --git a/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonDebugger.java b/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonDebugger.java index b633ab5b8..f764304c7 100644 --- a/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonDebugger.java +++ b/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonDebugger.java @@ -31,12 +31,13 @@ */ package com.jme3.scene.debug; -import java.util.Map; - import com.jme3.animation.Skeleton; import com.jme3.renderer.queue.RenderQueue.Bucket; import com.jme3.scene.Geometry; import com.jme3.scene.Node; +import com.jme3.util.clone.Cloner; + +import java.util.Map; /** * The class that creates a mesh to display how bones behave. @@ -122,4 +123,13 @@ public class SkeletonDebugger extends Node { public SkeletonInterBoneWire getInterBoneWires() { return interBoneWires; } + + @Override + public void cloneFields(Cloner cloner, Object original) { + super.cloneFields(cloner, original); + + this.wires = cloner.clone(wires); + this.points = cloner.clone(points); + this.interBoneWires = cloner.clone(interBoneWires); + } } \ No newline at end of file