mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
fix(model): correct skin section visibility check in CM2Scene::Animate
This commit is contained in:
parent
801fbc43b9
commit
529d2e41f2
@ -522,7 +522,8 @@ void CM2Scene::Animate(const C3Vector& cameraPos) {
|
|||||||
batch = &skinProfile->batches[batchIndex];
|
batch = &skinProfile->batches[batchIndex];
|
||||||
skinSection = &model->m_shared->m_skinSections[batch->skinSectionIndex];
|
skinSection = &model->m_shared->m_skinSections[batch->skinSectionIndex];
|
||||||
|
|
||||||
if (!skinSection) {
|
// Skip if skin section isn't currently visible
|
||||||
|
if (!model->m_skinSections[batch->skinSectionIndex]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user