mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-08 15:30:14 +00:00
[assets] Better automatic names for subdata of Anim and Col data (#2543)
* better auto names for anim subdata * better auto names for col subdata
This commit is contained in:
parent
ecb9b64354
commit
68ea3bcc00
2 changed files with 35 additions and 7 deletions
|
@ -138,7 +138,11 @@ class AnimationResource(CDataResource):
|
|||
lambda file, offset: AnimationFrameDataResource(
|
||||
file,
|
||||
offset,
|
||||
f"{self.name}_{frameData_address:08X}_FrameData",
|
||||
(
|
||||
f"{self.name.removesuffix('Anim')}FrameData"
|
||||
if self.name.endswith("Anim")
|
||||
else f"{self.name}_{frameData_address:08X}_FrameData"
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -151,7 +155,11 @@ class AnimationResource(CDataResource):
|
|||
lambda file, offset: AnimationJointIndicesResource(
|
||||
file,
|
||||
offset,
|
||||
f"{self.name}_{jointIndices_address:08X}_JointIndices",
|
||||
(
|
||||
f"{self.name.removesuffix('Anim')}JointIndices"
|
||||
if self.name.endswith("Anim")
|
||||
else f"{self.name}_{jointIndices_address:08X}_JointIndices"
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue