|
@@ -264,7 +264,7 @@ public final class Bone implements Savable {
|
|
|
public Vector3f getWorldBindInverseScale() {
|
|
public Vector3f getWorldBindInverseScale() {
|
|
|
return worldBindInverseScale;
|
|
return worldBindInverseScale;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Returns the world bind pose position.
|
|
* Returns the world bind pose position.
|
|
|
* <p>
|
|
* <p>
|
|
@@ -288,7 +288,7 @@ public final class Bone implements Savable {
|
|
|
public Quaternion getWorldBindRotation() {
|
|
public Quaternion getWorldBindRotation() {
|
|
|
return initialRot;
|
|
return initialRot;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Returns the world bind pose scale.
|
|
* Returns the world bind pose scale.
|
|
|
* <p>
|
|
* <p>
|
|
@@ -459,7 +459,7 @@ public final class Bone implements Savable {
|
|
|
if (!userControl) {
|
|
if (!userControl) {
|
|
|
throw new IllegalStateException("User control must be on bone to allow user transforms");
|
|
throw new IllegalStateException("User control must be on bone to allow user transforms");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// TODO: add scale here ???
|
|
// TODO: add scale here ???
|
|
|
worldPos.set(translation);
|
|
worldPos.set(translation);
|
|
|
worldRot.set(rotation);
|
|
worldRot.set(rotation);
|
|
@@ -555,11 +555,16 @@ public final class Bone implements Savable {
|
|
|
public void setBindTransforms(Vector3f translation, Quaternion rotation, Vector3f scale) {
|
|
public void setBindTransforms(Vector3f translation, Quaternion rotation, Vector3f scale) {
|
|
|
initialPos.set(translation);
|
|
initialPos.set(translation);
|
|
|
initialRot.set(rotation);
|
|
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);
|
|
localPos.set(translation);
|
|
|
localRot.set(rotation);
|
|
localRot.set(rotation);
|
|
|
- localScale.set(scale);
|
|
|
|
|
|
|
+ if (scale != null) {
|
|
|
|
|
+ localScale.set(scale);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private String toString(int depth) {
|
|
private String toString(int depth) {
|