提交 362cb796 编写于 作者: R Ryan Lee

fixed skinned mesh export

上级 4a5e31b5
......@@ -756,8 +756,8 @@ def vertices(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_
......
......@@ -218,6 +218,10 @@ def animated_xform(obj, options):
track_loc = track_loc[0]
use_inverted = options.get(constants.HIERARCHY, False) and obj.parent
if times == None:
logger.info("In animated xform: Unable to extract trackable fields from %s", objName)
return tracks
# for each frame
inverted_fallback = mathutils.Matrix() if use_inverted else None
convert_matrix = AXIS_CONVERSION # matrix to convert the exported matrix
......@@ -374,7 +378,7 @@ def matrix(obj, options):
parent_inverted = obj.parent.matrix_world.inverted(mathutils.Matrix())
return parent_inverted * obj.matrix_world
else:
return AXIS_CONVERSION * obj.matrix_world
return obj.matrix_world
@_object
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册