提交 41aae6d4 编写于 作者: R Ryan Lee

immediately addresses skinned meshes exported in scene format (Object)

上级 c7ae397c
...@@ -148,7 +148,7 @@ def buffer_position(mesh): ...@@ -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): ...@@ -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_
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册