From 22710e417c111489466e1520a96e0c66891560e1 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 13 Oct 2025 12:26:24 -0500 Subject: [PATCH] fix(model): correct M2ModelAttachment layout --- src/model/CM2Model.cpp | 2 +- src/model/M2Model.hpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/model/CM2Model.cpp b/src/model/CM2Model.cpp index 0619f49..8c2e103 100644 --- a/src/model/CM2Model.cpp +++ b/src/model/CM2Model.cpp @@ -980,7 +980,7 @@ int32_t CM2Model::InitializeLoaded() { new (&this->m_attachments[i]) M2ModelAttachment(); auto& modelAttachment = this->m_attachments[i]; - modelAttachment.visible = true; + modelAttachment.visibilityTrack.currentValue = 1; } } diff --git a/src/model/M2Model.hpp b/src/model/M2Model.hpp index f99d1b9..ab2f98a 100644 --- a/src/model/M2Model.hpp +++ b/src/model/M2Model.hpp @@ -20,9 +20,7 @@ struct M2ModelTrack { }; struct M2ModelAttachment { - CM2Model* model = nullptr; - int32_t linkPoint = 0; - bool visible = false; + M2ModelTrack visibilityTrack; }; struct M2ModelBoneSeq {