better auto names for anim subdata

This commit is contained in:
Dragorn421 2025-05-26 09:35:54 +02:00
parent 4201359f89
commit 9ab3c8de35
No known key found for this signature in database
GPG Key ID: 381AEBAF3D429335
1 changed files with 10 additions and 2 deletions

View File

@ -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"
),
),
)