mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42: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();
|
new (&this->m_attachments[i]) M2ModelAttachment();
|
||||||
|
|
||||||
auto& modelAttachment = this->m_attachments[i];
|
auto& modelAttachment = this->m_attachments[i];
|
||||||
modelAttachment.visible = true;
|
modelAttachment.visibilityTrack.currentValue = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,9 +20,7 @@ struct M2ModelTrack {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct M2ModelAttachment {
|
struct M2ModelAttachment {
|
||||||
CM2Model* model = nullptr;
|
M2ModelTrack<uint8_t> visibilityTrack;
|
||||||
int32_t linkPoint = 0;
|
|
||||||
bool visible = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct M2ModelBoneSeq {
|
struct M2ModelBoneSeq {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user