From 841d82dcbb824f5b0feefc7d2476fddf85d1f06b Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 10 Sep 2021 01:57:38 -0400 Subject: [PATCH] Fix incorrect manual revert in previous commit. We need to use the matrix provided by the higher level export code, not the worldspace matrix. In some engine versions (MOUL), this will be subworld space instead of worldspace. --- korman/exporter/physics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/physics.py b/korman/exporter/physics.py index cc26c32..976b171 100644 --- a/korman/exporter/physics.py +++ b/korman/exporter/physics.py @@ -283,7 +283,7 @@ class PhysicsConverter: physical.rot = utils.quaternion(mat.to_quaternion()) bmesh.ops.scale(mesh, vec=mat.to_scale(), verts=mesh.verts) else: - mesh.transform(bo.matrix_world) + mesh.transform(mat) result = bmesh.ops.convex_hull(mesh, input=mesh.verts, use_existing_faces=False) BMVert = bmesh.types.BMVert