Browse Source

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
pull/293/head v0.12a
Adam Johnson 3 years ago
parent
commit
b225f292eb
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:
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

Loading…
Cancel
Save