Skip to content

Commit

Permalink
fix: removed hack for wonky bone structure in animation
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustDG committed Dec 11, 2024
1 parent 978a1fb commit 3e218cd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions core/animation/animation_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ def get_current_clip_data_ordered(
result = np.zeros((num_bones, 8))

for j, bone_name in enumerate(joints_order):
# Quick fix for HR's bone structure being wonky
if "HR" in bone_name:
bone_name = f"FR_{bone_name[3:]}"

if bone_name not in clip_data:
continue

Expand Down Expand Up @@ -167,14 +163,6 @@ def get_current_clip_datas_ordered(

for i, clip_data in enumerate(clip_datas):
for j, bone_name in enumerate(joints_order):

# TODO: Investigate why HR's bones are not proper
# HR is different from the other bones and gives weird rotation values (+- 90deg)

# Quick fix for HR's bone structure being wonky
if "HR" in bone_name:
bone_name = f"FR_{bone_name[3:]}"

if bone_name not in clip_data:
continue

Expand Down

0 comments on commit 3e218cd

Please sign in to comment.