mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(model): correct M2ModelAttachment layout
This commit is contained in:
parent
67264fbaf6
commit
22710e417c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -20,9 +20,7 @@ struct M2ModelTrack {
|
||||
};
|
||||
|
||||
struct M2ModelAttachment {
|
||||
CM2Model* model = nullptr;
|
||||
int32_t linkPoint = 0;
|
||||
bool visible = false;
|
||||
M2ModelTrack<uint8_t> visibilityTrack;
|
||||
};
|
||||
|
||||
struct M2ModelBoneSeq {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user