From 7ba3c0730b17225495588350d1d34759a9448cbc Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 13 Oct 2025 22:28:21 -0500 Subject: [PATCH] feat(model): handle attachment visibility in CM2Model::AnimateMT --- src/model/CM2Model.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/model/CM2Model.cpp b/src/model/CM2Model.cpp index b1b04bc..64408cc 100644 --- a/src/model/CM2Model.cpp +++ b/src/model/CM2Model.cpp @@ -155,6 +155,15 @@ void CM2Model::AnimateMT(const C44Matrix* view, const C3Vector& a3, const C3Vect return; } + // Handle attachment visibility + + if (this->m_attachParent) { + this->m_flag8 = this->m_attachParent->m_flag8 && this->m_flag80; + this->m_flag10000 = this->m_attachParent->m_flag10000 && this->m_flag20000; + + // TODO dword174 + } + // TODO for (int32_t i = 0; i < this->m_shared->m_data->loops.Count(); i++) {