Browse Source

immediately addresses skinned meshes exported in scene format (Object)

Ryan Lee 8 years ago
parent
commit
41aae6d4f8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      utils/exporters/blender/addons/io_three/exporter/api/mesh.py

+ 2 - 2
utils/exporters/blender/addons/io_three/exporter/api/mesh.py

@@ -148,7 +148,7 @@ def buffer_position(mesh):
 
 
         for vertex_index in face.vertices:
         for vertex_index in face.vertices:
             vertex = mesh.vertices[vertex_index]
             vertex = mesh.vertices[vertex_index]
-            vector = (vertex.co.x, vertex.co.y, vertex.co.z)
+            vector = (vertex.co.x, vertex.co.z, -vertex.co.y)
             position.extend(vector)
             position.extend(vector)
 
 
     return position
     return position
@@ -763,7 +763,7 @@ def vertices(mesh):
     vertices_ = []
     vertices_ = []
 
 
     for vertex in mesh.vertices:
     for vertex in mesh.vertices:
-        vertices_.extend((vertex.co.x, vertex.co.y, vertex.co.z))
+        vertices_.extend((vertex.co.x, vertex.co.z, -vertex.co.y))
 
 
     return vertices_
     return vertices_