Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fast64_internal/sm64/animation/exporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def to_animation_class(
values_reference, indice_reference = action_props.values_table, action_props.indices_table
else:
pairs = get_animation_pairs(blender_to_sm64_scale, [action], obj, quick_read)[action]
animation.data = to_data_class(pairs, action_props.get_name(action, dma), animation.file_name)
animation.data = to_data_class(pairs, action_props.get_name(actor_name, action, dma), animation.file_name)
values_reference = animation.data.values_reference
indice_reference = animation.data.indice_reference
bone_count = len(get_anim_owners(obj))
Expand Down Expand Up @@ -360,7 +360,7 @@ def to_table_element_class(
if action in action_pairs and action not in data_dict:
data_dict[action] = to_data_class(
action_pairs[action],
action_props.get_name(action, dma),
action_props.get_name(actor_name, action, dma),
action_props.get_file_name(action, export_type, dma),
)
data = data_dict[action]
Expand Down
4 changes: 2 additions & 2 deletions fast64_internal/sm64/animation/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,10 @@ def headers(self) -> list[SM64_AnimHeaderProperties]:
def dma_name(self):
return get_dma_anim_name([header.table_index for header in self.headers])

def get_name(self, action: Action, dma=False) -> str:
def get_name(self, actor_name: str, action: Action, dma=False) -> str:
if dma:
return self.dma_name
return toAlnum(f"anim_{action.name}")
return toAlnum(f"{actor_name}_anim_{action.name}")

def get_file_name(self, action: Action, export_type: str, dma=False) -> str:
if not export_type in {"C", "Insertable Binary"}:
Expand Down