fix(component): correct paste targets in CCharacterComponent::RenderPrepHU

This commit is contained in:
fallenoak 2025-10-27 19:27:22 -05:00
parent 66c003e424
commit 2964e51030
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -495,19 +495,19 @@ void CCharacterComponent::RenderPrepHU(CCharacterComponent* component) {
auto faceUpperTexture = component->m_texture[TEXTURE_INDEX(VARIATION_FACE, 1)]; auto faceUpperTexture = component->m_texture[TEXTURE_INDEX(VARIATION_FACE, 1)];
if (faceUpperTexture) { if (faceUpperTexture) {
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, faceUpperTexture, CCharacterComponent::s_textureBuffer); CCharacterComponent::PasteToSection(SECTION_HEAD_UPPER, faceUpperTexture, CCharacterComponent::s_textureBuffer);
} }
// Hair textures // Hair textures
auto facialHairUpperTexture = component->m_texture[TEXTURE_INDEX(VARIATION_FACIAL_HAIR, 1)]; auto facialHairUpperTexture = component->m_texture[TEXTURE_INDEX(VARIATION_FACIAL_HAIR, 1)];
if (facialHairUpperTexture) { if (facialHairUpperTexture) {
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, facialHairUpperTexture, CCharacterComponent::s_textureBuffer); CCharacterComponent::PasteToSection(SECTION_HEAD_UPPER, facialHairUpperTexture, CCharacterComponent::s_textureBuffer);
} }
auto hairUpperTexture = component->m_texture[TEXTURE_INDEX(VARIATION_HAIR, 2)]; auto hairUpperTexture = component->m_texture[TEXTURE_INDEX(VARIATION_HAIR, 2)];
if (hairUpperTexture) { if (hairUpperTexture) {
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, hairUpperTexture, CCharacterComponent::s_textureBuffer); CCharacterComponent::PasteToSection(SECTION_HEAD_UPPER, hairUpperTexture, CCharacterComponent::s_textureBuffer);
} }
} }