Skip to content

Commit

Permalink
Should fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanmunawar committed Jun 9, 2021
1 parent b578f02 commit 006d49d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ambf_addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,8 +1254,10 @@ def generate_body_data_from_ambf_rigid_body(self, adf_data, obj_handle):
if obj_handle.ambf_collision_mesh:
body_data['collision mesh'] = \
remove_namespace_prefix(obj_handle.ambf_collision_mesh.name + '.' + output_mesh)
else:
raise Exception("ERROR! For object ", obj_handle.name, " \" Use Separate Collision Mesh\" is \"True\" but \"Collision Mesh\" not specified.")
else:
body_data['collision mesh'] = obj_handle_name + '.' + output_mesh
del body_data['collision mesh']
else:
del body_data['collision mesh']
del body_data['collision mesh type']
Expand Down

0 comments on commit 006d49d

Please sign in to comment.