Browse Source

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.
pull/297/head
Adam Johnson 3 years ago
parent
commit
841d82dcbb
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/exporter/physics.py

2
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

Loading…
Cancel
Save