- fix Bone constructor doesn't clone the given Bone object parameter

experimental
Alrik 9 years ago
parent 0a45432cea
commit 03b351f26c
  1. 12
      jme3-core/src/main/java/com/jme3/animation/Bone.java

@ -155,13 +155,13 @@ public final class Bone implements Savable {
userControl = source.userControl; userControl = source.userControl;
bindPos = source.bindPos; bindPos = source.bindPos.clone();
bindRot = source.bindRot; bindRot = source.bindRot.clone();
bindScale = source.bindScale; bindScale = source.bindScale.clone();
modelBindInversePos = source.modelBindInversePos; modelBindInversePos = source.modelBindInversePos.clone();
modelBindInverseRot = source.modelBindInverseRot; modelBindInverseRot = source.modelBindInverseRot.clone();
modelBindInverseScale = source.modelBindInverseScale; modelBindInverseScale = source.modelBindInverseScale.clone();
// parent and children will be assigned manually.. // parent and children will be assigned manually..
} }

Loading…
Cancel
Save