From 4168a96bd240846b001d8badd6d26e3dc2b41bf3 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 13 Oct 2025 08:50:14 -0500 Subject: [PATCH] feat(model): setup lighting for attached models in CM2Model::SetupLighting --- src/model/CM2Model.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/model/CM2Model.cpp b/src/model/CM2Model.cpp index dc1af5d..f905df4 100644 --- a/src/model/CM2Model.cpp +++ b/src/model/CM2Model.cpp @@ -1550,10 +1550,9 @@ void CM2Model::SetupLighting() { this->m_lighting.CameraSpace(); } - // TODO - // for (auto model = this->model58; model; model = model->model60) { - // model->SetupLighting(); - // } + for (auto model = this->m_attachList; model; model = model->m_attachNext) { + model->SetupLighting(); + } } void CM2Model::SetVisible(int32_t visible) {