diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-12-26 19:24:12 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-26 17:24:12 -0500 |
| commit | 155a463a54a3bc9b9c86000ae6d819455875ec15 (patch) | |
| tree | 22e9b3545e0051dac9162d901ae49cb87d1ba647 /ZAPD/ZAnimation.cpp | |
| parent | 431c1bc46c64712a42a22893dc28e9503fe3934a (diff) | |
Fix padding generation for double word aligned variables (#223)
* Don't produce a symbol for 8byte aligned symbols
* Change Vtx alignment to 8
* Remove Align16
* handle unaccounteds properly when stuff has Align8 alignment
* format
* Fix warning
* typo
Diffstat (limited to 'ZAPD/ZAnimation.cpp')
| -rw-r--r-- | ZAPD/ZAnimation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ZAPD/ZAnimation.cpp b/ZAPD/ZAnimation.cpp index adb0ae7..4d9266b 100644 --- a/ZAPD/ZAnimation.cpp +++ b/ZAPD/ZAnimation.cpp @@ -104,7 +104,7 @@ void ZNormalAnimation::DeclareReferences(const std::string& prefix) valuesStr += "\n "; } - parent->AddDeclarationArray(rotationValuesOffset, DeclarationAlignment::Align16, + parent->AddDeclarationArray(rotationValuesOffset, DeclarationAlignment::Align4, rotationValues.size() * 2, "s16", StringHelper::Sprintf("%sFrameData", defaultPrefix.c_str()), rotationValues.size(), valuesStr); @@ -118,7 +118,7 @@ void ZNormalAnimation::DeclareReferences(const std::string& prefix) indicesStr += "\n"; } - parent->AddDeclarationArray(rotationIndicesOffset, DeclarationAlignment::Align16, + parent->AddDeclarationArray(rotationIndicesOffset, DeclarationAlignment::Align4, rotationIndices.size() * 6, "JointIndex", StringHelper::Sprintf("%sJointIndices", defaultPrefix.c_str()), rotationIndices.size(), indicesStr); @@ -385,7 +385,7 @@ size_t ZCurveAnimation::GetRawDataSize() const DeclarationAlignment ZCurveAnimation::GetDeclarationAlignment() const { - return DeclarationAlignment::Align16; + return DeclarationAlignment::Align4; } std::string ZCurveAnimation::GetSourceTypeName() const |
