From d3733fba152c39e74290680a53f109d82efeb636 Mon Sep 17 00:00:00 2001 From: Christopher Hughes Date: Thu, 6 Jul 2017 16:52:39 -0400 Subject: [PATCH] Overrode SkeletonDebugger clone method. Ticket #660 --- .../com/jme3/scene/debug/SkeletonDebugger.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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