public Vector3f getWorldBindInverseScale() {
return worldBindInverseScale;
}
-
+
/**
* Returns the world bind pose position.
* <p>
public Quaternion getWorldBindRotation() {
return initialRot;
}
-
+
/**
* Returns the world bind pose scale.
* <p>
if (!userControl) {
throw new IllegalStateException("User control must be on bone to allow user transforms");
}
-
+
// TODO: add scale here ???
worldPos.set(translation);
worldRot.set(rotation);
public void setBindTransforms(Vector3f translation, Quaternion rotation, Vector3f scale) {
initialPos.set(translation);
initialRot.set(rotation);
- initialScale.set(scale);
-
+ //ogre.xml can have null scale values breaking this if the check is removed
+ if (scale != null) {
+ initialScale.set(scale);
+ }
+
localPos.set(translation);
localRot.set(rotation);
- localScale.set(scale);
+ if (scale != null) {
+ localScale.set(scale);
+ }
}
private String toString(int depth) {