Fixes to Y is up axis arrow.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8544 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
9bf315fbcf
commit
67930542ee
@ -194,12 +194,7 @@ public class MeshHelper extends AbstractBlenderHelper {
|
||||
int v3 = ((Number) mFace.getFieldValue("v3")).intValue();
|
||||
int v4 = ((Number) mFace.getFieldValue("v4")).intValue();
|
||||
|
||||
Vector3f n;
|
||||
if(fixUpAxis) {
|
||||
n = FastMath.computeNormal(vertices[v1], vertices[v3], vertices[v2]);
|
||||
} else {
|
||||
n = FastMath.computeNormal(vertices[v1], vertices[v2], vertices[v3]);
|
||||
}
|
||||
Vector3f n = FastMath.computeNormal(vertices[v1], vertices[v2], vertices[v3]);
|
||||
this.addNormal(n, normalMap, smooth, vertices[v1], vertices[v2], vertices[v3]);
|
||||
normalList.add(normalMap.get(vertices[v1]));
|
||||
normalList.add(normalMap.get(vertices[v2]));
|
||||
@ -506,7 +501,7 @@ public class MeshHelper extends AbstractBlenderHelper {
|
||||
if(this.fixUpAxis) {
|
||||
for (int i = 0; i < verticesAmount; ++i) {
|
||||
DynamicArray<Number> coordinates = (DynamicArray<Number>) mVerts.get(i).getFieldValue("co");
|
||||
vertices[i] = new Vector3f(coordinates.get(0).floatValue(), coordinates.get(2).floatValue(), coordinates.get(1).floatValue());
|
||||
vertices[i] = new Vector3f(coordinates.get(0).floatValue(), coordinates.get(2).floatValue(), -coordinates.get(1).floatValue());
|
||||
}
|
||||
} else {
|
||||
for (int i = 0; i < verticesAmount; ++i) {
|
||||
|
@ -312,7 +312,7 @@ public class ObjectHelper extends AbstractBlenderHelper {
|
||||
|
||||
y=scale.y;
|
||||
scale.y = scale.z;
|
||||
scale.z = -y;
|
||||
scale.z = y;
|
||||
}
|
||||
|
||||
//create the result
|
||||
|
Loading…
x
Reference in New Issue
Block a user