fix(model): correct skin section visibility check in CM2Scene::Animate

This commit is contained in:
fallenoak 2025-10-13 20:41:14 -05:00
parent 801fbc43b9
commit 529d2e41f2
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -522,7 +522,8 @@ void CM2Scene::Animate(const C3Vector& cameraPos) {
batch = &skinProfile->batches[batchIndex];
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;
}
}