mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
chore(component): tidy up CCharacterComponent::RenderPrepHL
This commit is contained in:
parent
2393f0aefa
commit
7b32d99bb0
@ -377,22 +377,20 @@ void CCharacterComponent::RenderPrepHL(CCharacterComponent* component) {
|
|||||||
CCharacterComponent::PasteFromSkin(SECTION_HEAD_LOWER, skin, CCharacterComponent::s_textureBuffer);
|
CCharacterComponent::PasteFromSkin(SECTION_HEAD_LOWER, skin, CCharacterComponent::s_textureBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto faceTexture = component->m_texture[TEXTURE_INDEX(VARIATION_FACE, 0)];
|
auto faceLowerTexture = component->m_texture[TEXTURE_INDEX(VARIATION_FACE, 0)];
|
||||||
if (faceTexture) {
|
if (faceLowerTexture) {
|
||||||
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, faceTexture, CCharacterComponent::s_textureBuffer);
|
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, faceLowerTexture, CCharacterComponent::s_textureBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto facialHairTexture = component->m_texture[TEXTURE_INDEX(VARIATION_FACIAL_HAIR, 0)];
|
auto facialHairLowerTexture = component->m_texture[TEXTURE_INDEX(VARIATION_FACIAL_HAIR, 0)];
|
||||||
if (facialHairTexture) {
|
if (facialHairLowerTexture) {
|
||||||
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, facialHairTexture, CCharacterComponent::s_textureBuffer);
|
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, facialHairLowerTexture, CCharacterComponent::s_textureBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto hairLowerTexture = component->m_texture[TEXTURE_INDEX(VARIATION_HAIR, 1)];
|
auto hairLowerTexture = component->m_texture[TEXTURE_INDEX(VARIATION_HAIR, 1)];
|
||||||
if (hairLowerTexture) {
|
if (hairLowerTexture) {
|
||||||
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, hairLowerTexture, CCharacterComponent::s_textureBuffer);
|
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, hairLowerTexture, CCharacterComponent::s_textureBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterComponent::RenderPrepHU(CCharacterComponent* component) {
|
void CCharacterComponent::RenderPrepHU(CCharacterComponent* component) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user