feat(model): first implementation of character rendering

This commit is contained in:
VDm committed 2025-05-25 23:07:13 +04:00
1 parent 6780f5061f
commit 29994c1181
3 files changed
+106 -7

No files matched your search

+14
View File
@@ -77,11 +77,25 @@ void CCharacterSelection::ShowCharacter() {
}
// TODO
if (CCharacterSelection::m_modelFrame) {
auto model = CCharacterSelection::m_modelFrame->m_model;
if (model) {
//model->DetachAllChildrenById(0);
//model->DetachAllChildrenById(1);
}
}
CCharacterSelection::m_charFacing = 0.0;
auto& character = CCharacterSelection::s_characterList[index];
if (character.m_characterModel) {
if (!character.m_characterModel->m_attachParent && CCharacterSelection::m_modelFrame && CCharacterSelection::m_modelFrame->m_model) {
character.m_characterModel->SetVisible(1);
character.m_characterModel->AttachToParent(CCharacterSelection::m_modelFrame->m_model, 0, nullptr, 0);
character.m_characterModel->SetVisible(1);
}
// TODO
return;
}