mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +03:00
feat(model): animate attached models in CM2Model::AnimateST
This commit is contained in:
parent
1eca3a8e7f
commit
578503d8ec
@ -619,6 +619,22 @@ void CM2Model::AnimateST() {
|
|||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
// Animate attached models
|
||||||
|
|
||||||
|
for (auto model = this->m_attachList; model; model = model->m_attachNext) {
|
||||||
|
bool animate;
|
||||||
|
|
||||||
|
if (model->m_attachIndex == 0xFFFF) {
|
||||||
|
animate = model->m_flag40000;
|
||||||
|
} else {
|
||||||
|
animate = this->m_attachments[model->m_attachIndex].visibilityTrack.currentValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (animate) {
|
||||||
|
model->AnimateST();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this->float198 == 1.0f) {
|
if (this->float198 == 1.0f) {
|
||||||
this->uint90 = 1;
|
this->uint90 = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user