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

This commit is contained in:
fallenoak committed 2025-10-13 20:41:14 -05:00
1 parent 801fbc43b9
commit 529d2e41f2
1 file changed
+2 -1
+2 -1
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;
}
}