Merge pull request #678 from Bekreth/skeletonClone

Overrode SkeletonDebugger clone method.  Ticket #660
fix-456
Paul Speed 8 years ago committed by GitHub
commit e860fa6ce6
  1. 14
      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);
}
}
Loading…
Cancel
Save