Skip to content

Commit

Permalink
Don't overwrite trimesh vertices with hull vertices.
Browse files Browse the repository at this point in the history
If we're given a flat convex hull, we should *only* export the triangle
mesh. The convex hull setting is no longer relevant, and we should
discontinue that code path. Without this return statement, the convex
hull's vertices overwrite the triangle mesh's vertices, but the triangle
mesh indices remain. This can unlease an even worse variety of Satan
that will crash the gane.
  • Loading branch information
Hoikas committed Feb 20, 2024
1 parent f303244 commit 582921b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions korman/exporter/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ def _export_hull(self, bo, physical, local_space, mat):
bo.name, volume
)
self._export_trimesh(bo, physical, local_space, mat)
return

if local_space:
physical.pos = hsVector3(*mat.to_translation())
Expand Down

0 comments on commit 582921b

Please sign in to comment.