From 582921be44d18ee51df8ba4df4b25b8ed82f32d4 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 20 Feb 2024 18:48:13 -0500 Subject: [PATCH] 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. --- korman/exporter/physics.py | 1 + 1 file changed, 1 insertion(+) diff --git a/korman/exporter/physics.py b/korman/exporter/physics.py index 34949b9..ef6f181 100644 --- a/korman/exporter/physics.py +++ b/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())