Removing fix up axis checking for mesh vertices.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8361 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
952081b192
commit
984bab2ae9
@ -498,11 +498,7 @@ public class MeshHelper extends AbstractBlenderHelper {
|
|||||||
List<Structure> mVerts = pMVert.fetchData(blenderContext.getInputStream());
|
List<Structure> mVerts = pMVert.fetchData(blenderContext.getInputStream());
|
||||||
for (int i = 0; i < verticesAmount; ++i) {
|
for (int i = 0; i < verticesAmount; ++i) {
|
||||||
DynamicArray<Number> coordinates = (DynamicArray<Number>) mVerts.get(i).getFieldValue("co");
|
DynamicArray<Number> coordinates = (DynamicArray<Number>) mVerts.get(i).getFieldValue("co");
|
||||||
if (blenderContext.getBlenderKey().isFixUpAxis()) {
|
vertices[i] = new Vector3f(coordinates.get(0).floatValue(), coordinates.get(1).floatValue(), coordinates.get(2).floatValue());
|
||||||
vertices[i] = new Vector3f(coordinates.get(0).floatValue(), coordinates.get(2).floatValue(), -coordinates.get(1).floatValue());
|
|
||||||
} else {
|
|
||||||
vertices[i] = new Vector3f(coordinates.get(0).floatValue(), coordinates.get(1).floatValue(), coordinates.get(2).floatValue());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return vertices;
|
return vertices;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user