Skip to content

Commit

Permalink
Fix hinge exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
General-101 committed Jun 22, 2024
1 parent bfb139c commit c13306e
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 158 deletions.
1 change: 0 additions & 1 deletion io_scene_halo/file_jms/build_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,6 @@ def write_hinges(file, JMS, binary, write_comments=False, write_whitespace=False
file.write(DECIMAL_3 % hinge.body_a_translation)
file.write(DECIMAL_4 % hinge.body_b_rotation)
file.write(DECIMAL_3 % hinge.body_b_translation)
file.write(DECIMAL_1 % hinge.min_twist)
file.write('\n%s' % hinge.is_limited)
file.write(DECIMAL_1 % hinge.friction_limit)
file.write(DECIMAL_1 % hinge.min_angle)
Expand Down
8 changes: 4 additions & 4 deletions io_scene_halo/file_tag/h1/file_object/upgrade_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def get_function_list(H1_ASSET, function_list, keyword, FunctionsEnum):
if d_scale_function != FunctionsEnum.none:
function_list[3] = get_valid_h1_object_functions(d_scale_function.name)
elif "Weapon" == keyword:
a_scale_function = FunctionsEnum(H1_ASSET.weapon_body.weapon_a_in)
b_scale_function = FunctionsEnum(H1_ASSET.weapon_body.weapon_b_in)
c_scale_function = FunctionsEnum(H1_ASSET.weapon_body.weapon_c_in)
d_scale_function = FunctionsEnum(H1_ASSET.weapon_body.weapon_d_in)
a_scale_function = FunctionsEnum(H1_ASSET.weapon_a_in)
b_scale_function = FunctionsEnum(H1_ASSET.weapon_b_in)
c_scale_function = FunctionsEnum(H1_ASSET.weapon_c_in)
d_scale_function = FunctionsEnum(H1_ASSET.weapon_d_in)
if a_scale_function != FunctionsEnum.none:
function_list[0] = get_valid_h1_weapon_functions(a_scale_function.name)
if b_scale_function != FunctionsEnum.none:
Expand Down
Loading

0 comments on commit c13306e

Please sign in to comment.