mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 08:13:50 +03:00
fix(component): correct paste targets in CCharacterComponent::RenderPrepHU
This commit is contained in:
1 file changed
+3
-3
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user