Bugfix: bone context returns the length of the bone without taking model scale into account; that caused troubles during constraint's computations but should be used for bone debugger length (an appropriate notice is in the method's javadoc).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10940 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
Kae..pl 11 years ago
parent b5357e96ec
commit 25e20509c6
  1. 7
      engine/src/blender/com/jme3/scene/plugins/blender/animations/BoneContext.java

@ -174,10 +174,15 @@ public class BoneContext {
}
/**
* The method returns the length of the bone.
* If you want to use it for bone debugger take model space scale into account and do
* something like this:
* <b>boneContext.getLength() * boneContext.getBone().getModelSpaceScale().y</b>.
* Otherwise the bones might not look as they should in the bone debugger.
* @return the length of the bone
*/
public float getLength() {
return length * bone.getModelSpaceScale().y;
return length;
}
/**

Loading…
Cancel
Save