feat(component): apply upper underwear texture in CCharacterComponent::RenderPrepTU

This commit is contained in:
fallenoak 2025-10-25 22:12:00 -05:00
parent 61293b82dc
commit ed612b3002
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -475,6 +475,13 @@ void CCharacterComponent::RenderPrepTU(CCharacterComponent* component) {
auto skin = component->m_texture[TEXTURE_INDEX(VARIATION_SKIN, 0)];
CCharacterComponent::PasteFromSkin(SECTION_TORSO_UPPER, skin, CCharacterComponent::s_textureBuffer);
if (!(component->m_itemDisplays[ITEMSLOT_3].priorityDirty & ((1 << 0) | (1 << 1) | (1 << 2)))) {
auto underwearUpperTexture = component->m_texture[TEXTURE_INDEX(VARIATION_UNDERWEAR, 1)];
if (underwearUpperTexture) {
CCharacterComponent::PasteToSection(SECTION_TORSO_UPPER, underwearUpperTexture, CCharacterComponent::s_textureBuffer);
}
}
// TODO
}