From c4d3e7ea6ffd5f00726e7b8cffe42b2a73efe2d3 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 28 Nov 2011 20:36:35 +0000 Subject: [PATCH] - Bone : Attached Node transforsm are now correctly updated when using setUserTransformWorld git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8830 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/animation/Bone.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/src/core/com/jme3/animation/Bone.java b/engine/src/core/com/jme3/animation/Bone.java index 2be9b7e68..d3e717bbe 100644 --- a/engine/src/core/com/jme3/animation/Bone.java +++ b/engine/src/core/com/jme3/animation/Bone.java @@ -469,6 +469,12 @@ public final class Bone implements Savable { // TODO: add scale here ??? worldPos.set(translation); worldRot.set(rotation); + + //if there is an attached Node we need to set it's local transforms too. + if(attachNode != null){ + attachNode.setLocalTranslation(translation); + attachNode.setLocalRotation(rotation); + } } /**