diff options
author | Jaime van Kessel <nallath@gmail.com> | 2021-04-07 15:02:29 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2021-04-07 15:03:35 +0300 |
commit | d49a90029f6b948b9c950a4055b68403d9a4a7b1 (patch) | |
tree | dcf42db7679d6b4711545b8bff1e09c440dfe60e /plugins/TrimeshReader | |
parent | 3432720f7ca1af31fa3c57efdbb5ebe42e93b595 (diff) |
Fix final set of typing issues
Diffstat (limited to 'plugins/TrimeshReader')
-rw-r--r-- | plugins/TrimeshReader/TrimeshReader.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/TrimeshReader/TrimeshReader.py b/plugins/TrimeshReader/TrimeshReader.py index cbec2e2482..6aea321f15 100644 --- a/plugins/TrimeshReader/TrimeshReader.py +++ b/plugins/TrimeshReader/TrimeshReader.py @@ -145,22 +145,22 @@ class TrimeshReader(MeshReader): tri_faces = tri_node.faces tri_vertices = tri_node.vertices - indices = [] - vertices = [] + indices_list = [] + vertices_list = [] index_count = 0 face_count = 0 for tri_face in tri_faces: face = [] for tri_index in tri_face: - vertices.append(tri_vertices[tri_index]) + vertices_list.append(tri_vertices[tri_index]) face.append(index_count) index_count += 1 - indices.append(face) + indices_list.append(face) face_count += 1 - vertices = numpy.asarray(vertices, dtype = numpy.float32) - indices = numpy.asarray(indices, dtype = numpy.int32) + vertices = numpy.asarray(vertices_list, dtype = numpy.float32) + indices = numpy.asarray(indices_list, dtype = numpy.int32) normals = calculateNormalsFromIndexedVertices(vertices, indices, face_count) mesh_data = MeshData(vertices = vertices, indices = indices, normals = normals, file_name = file_name) |