fix(model): correct M2ModelAttachment layout

This commit is contained in:
fallenoak 2025-10-13 12:26:24 -05:00
parent 67264fbaf6
commit 22710e417c
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 2 additions and 4 deletions

View File

@ -980,7 +980,7 @@ int32_t CM2Model::InitializeLoaded() {
new (&this->m_attachments[i]) M2ModelAttachment();
auto& modelAttachment = this->m_attachments[i];
modelAttachment.visible = true;
modelAttachment.visibilityTrack.currentValue = 1;
}
}

View File

@ -20,9 +20,7 @@ struct M2ModelTrack {
};
struct M2ModelAttachment {
CM2Model* model = nullptr;
int32_t linkPoint = 0;
bool visible = false;
M2ModelTrack<uint8_t> visibilityTrack;
};
struct M2ModelBoneSeq {