Skip to content

Commit b1d0465

Browse files
JriusHoikas
andcommitted
Normals: performance improvement
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
1 parent 30d2a30 commit b1d0465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

korman/exporter/mesh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def _export_geometry(self, bo, mesh, materials, geospans, mat2span_LUT):
398398
dPosDv = hsVector3(0.0, 0.0, 0.0)
399399

400400
# Unpack normals
401-
tessface_normals = [tuple(n) for n in tessface.split_normals]
401+
tessface_normals = tessface.split_normals
402402

403403
# Unpack the UV coordinates from each UV Texture layer
404404
# NOTE: Blender has no third (W) coordinate
@@ -448,7 +448,7 @@ def _export_geometry(self, bo, mesh, materials, geospans, mat2span_LUT):
448448

449449
# Convert to per-material indices
450450
for j, vertex in enumerate(tessface.vertices):
451-
vertex_normal = tessface_normals[j]
451+
vertex_normal = tuple(tessface_normals[j])
452452
uvws = tuple([tuple(uvw[j]) for uvw in tessface_uvws])
453453

454454
# Calculate vertex colors.

0 commit comments

Comments
 (0)