Fix to applying Y-up axis to rotated objects.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7704 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
c67ab5bb8d
commit
41cde21260
@ -312,7 +312,7 @@ public class ObjectHelper extends AbstractBlenderHelper {
|
|||||||
float y = translation.y;
|
float y = translation.y;
|
||||||
translation.y = translation.z;
|
translation.y = translation.z;
|
||||||
translation.z = -y;
|
translation.z = -y;
|
||||||
rotation.multLocal(this.upAxisRotationQuaternion);
|
rotation = this.upAxisRotationQuaternion.mult(rotation);
|
||||||
}
|
}
|
||||||
|
|
||||||
//create the result
|
//create the result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user