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:
Kae..pl 2011-06-23 17:16:18 +00:00
parent c67ab5bb8d
commit 41cde21260

View File

@ -312,7 +312,7 @@ public class ObjectHelper extends AbstractBlenderHelper {
float y = translation.y;
translation.y = translation.z;
translation.z = -y;
rotation.multLocal(this.upAxisRotationQuaternion);
rotation = this.upAxisRotationQuaternion.mult(rotation);
}
//create the result