From b225f292eb1b889e095b5147f515b5191a8853af Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 2 Sep 2021 13:34:08 -0400 Subject: [PATCH] Fix traceback when exporting convex hull colliders. This regression was introduced in #287 and reported on the forum after the release of 0.12 https://forum.guildofwriters.org/viewtopic.php?f=2&t=7306 --- 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 c0303aa..cc26c32 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: - utils.transform_mesh(mesh, mat) + mesh.transform(bo.matrix_world) result = bmesh.ops.convex_hull(mesh, input=mesh.verts, use_existing_faces=False) BMVert = bmesh.types.BMVert