Browse Source

Don't overwrite trimesh vertices with hull vertices.

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.
pull/408/head
Adam Johnson 2 months ago
parent
commit
582921be44
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 1
      korman/exporter/physics.py

1
korman/exporter/physics.py

@ -300,6 +300,7 @@ class PhysicsConverter:
bo.name, volume
)
self._export_trimesh(bo, physical, local_space, mat)
return
if local_space:
physical.pos = hsVector3(*mat.to_translation())

Loading…
Cancel
Save