Skip to content

Commit

Permalink
tranformation bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aconty committed Apr 27, 2009
1 parent 4369929 commit 3107d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collada/triangleset.py
Expand Up @@ -253,7 +253,7 @@ class BoundTriangleSet(object):

def __init__(self, ts, matrix, materialnodebysymbol):
"""Create a bound triangle set from a triangle set, transform and material mapping"""
M = numpy.asmatrix(matrix)
M = numpy.asmatrix(matrix).transpose()
self._vertex = numpy.asarray(ts._vertex * M[:3,:3]) + matrix[:3,3]
self._normal = numpy.asarray(ts._normal * M[:3,:3])
self._texcoordset = ts._texcoordset
Expand Down

0 comments on commit 3107d41

Please sign in to comment.