- 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
This commit is contained in:
rem..om 2011-11-28 20:36:35 +00:00
parent 6113425db9
commit c4d3e7ea6f

View File

@ -469,6 +469,12 @@ public final class Bone implements Savable {
// TODO: add scale here ??? // TODO: add scale here ???
worldPos.set(translation); worldPos.set(translation);
worldRot.set(rotation); 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);
}
} }
/** /**