From 55b7eacf230885e8ad04e6982e0cd24c251ec2d5 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 27 Oct 2025 16:24:37 -0500 Subject: [PATCH] chore(component): improve name of dirty section mask --- src/component/CCharacterComponent.cpp | 7 +++---- src/component/CCharacterComponent.hpp | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/component/CCharacterComponent.cpp b/src/component/CCharacterComponent.cpp index 70fa59c..abfabcd 100644 --- a/src/component/CCharacterComponent.cpp +++ b/src/component/CCharacterComponent.cpp @@ -754,7 +754,7 @@ void CCharacterComponent::LoadBaseVariation(COMPONENT_VARIATIONS sectionIndex, i this->m_texture[index] = TextureCacheCreateTexture(s_path); } - this->m_sections |= 1 << section; + this->m_sectionDirty |= 1 << section; // TODO @@ -810,8 +810,7 @@ void CCharacterComponent::RenderPrepAll() { this->m_flags &= ~0x1; - // TODO dirty mask? - this->m_sections = 0; + this->m_sectionDirty = 0; // TODO } @@ -868,7 +867,7 @@ void CCharacterComponent::SetFace(int32_t faceID, bool a3, const char* a4) { } this->m_flags |= 0x4; - this->m_sections |= (1 << SECTION_HEAD_LOWER) | (1 << SECTION_HEAD_UPPER); + this->m_sectionDirty |= (1 << SECTION_HEAD_LOWER) | (1 << SECTION_HEAD_UPPER); // TODO diff --git a/src/component/CCharacterComponent.hpp b/src/component/CCharacterComponent.hpp index 12b9f01..775822d 100644 --- a/src/component/CCharacterComponent.hpp +++ b/src/component/CCharacterComponent.hpp @@ -107,7 +107,7 @@ class CCharacterComponent { // Member variables uint32_t m_flags = 0x1 | 0x2 | 0x4; - uint32_t m_sections = 0xFFFFFFFF; + uint32_t m_sectionDirty = 0xFFFFFFFF; EGxTexFormat m_textureFormat = CCharacterComponent::s_gxFormat; ComponentData m_data; HTEXTURE m_baseTexture = nullptr;