Skip to content

Commit

Permalink
hold on
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Jan 21, 2024
1 parent 65adda8 commit 9f072ed
Show file tree
Hide file tree
Showing 2 changed files with 307 additions and 606 deletions.
4 changes: 2 additions & 2 deletions fast64_internal/sm64/animation/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def read_c(self, maxFrame, offset, values: list[int]):
self.values.append(value)


headerSize = 0x18
HEADER_SIZE = 0x18
int_to_c_flags = {
0: "ANIM_FLAG_NOLOOP",
1: "ANIM_FLAG_FORWARD",
Expand Down Expand Up @@ -291,7 +291,7 @@ def to_binary(self, is_dma: bool, start_address: int) -> bytearray:
bone_count = 0
else:
values_table, indices_table = self.create_tables()
indices_offset = headerSize * len(self.headers)
indices_offset = HEADER_SIZE * len(self.headers)
indices_size = len(indices_table.data) * 2
values_offset = indices_offset + indices_size
bone_count = (len(self.pairs) // 3) - 1
Expand Down
Loading

0 comments on commit 9f072ed

Please sign in to comment.