Skip to content

Commit

Permalink
Normals: performance improvement
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Johnson <[email protected]>
  • Loading branch information
Jrius and Hoikas committed Jan 12, 2025
1 parent 30d2a30 commit b1d0465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions korman/exporter/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def _export_geometry(self, bo, mesh, materials, geospans, mat2span_LUT):
dPosDv = hsVector3(0.0, 0.0, 0.0)

# Unpack normals
tessface_normals = [tuple(n) for n in tessface.split_normals]
tessface_normals = tessface.split_normals

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

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

# Calculate vertex colors.
Expand Down

0 comments on commit b1d0465

Please sign in to comment.