Skip to content

Commit

Permalink
LOD collision fix (#93)
Browse files Browse the repository at this point in the history
added LOD0 check before getting collision
  • Loading branch information
JoshQuake authored Oct 19, 2024
1 parent 93dd748 commit ea00d83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/addons/send2ue/core/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ def export_mesh(asset_id, mesh_object, properties, lod=0):
set_parent_rig_selection(mesh_object, properties)

# select collision meshes
asset_name = utilities.get_asset_name(mesh_object.name, properties)
utilities.select_asset_collisions(asset_name, properties)
if lod == 0:
asset_name = utilities.get_asset_name(mesh_object.name, properties)
utilities.select_asset_collisions(asset_name, properties)

# Note: this is a weird work around for morph targets not exporting when
# particle systems are on the mesh. Making them not visible fixes this bug
Expand Down

0 comments on commit ea00d83

Please sign in to comment.