1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 21:45:35 +00:00

Merge branch 'fix_hand_model' into 'master'

Fix #7506

Closes #7506

See merge request OpenMW/openmw!3335
This commit is contained in:
psi29a 2023-08-18 08:21:11 +00:00
commit f9910290e0

View file

@ -423,12 +423,16 @@ namespace MWMechanics
ESM::NPC player = *world->getPlayerPtr().get<ESM::NPC>()->mBase; ESM::NPC player = *world->getPlayerPtr().get<ESM::NPC>()->mBase;
if (player.mRace != race || player.mHead != head || player.mHair != hair || player.isMale() != male)
{
player.mRace = race; player.mRace = race;
player.mHead = head; player.mHead = head;
player.mHair = hair; player.mHair = hair;
player.setIsMale(male); player.setIsMale(male);
world->getStore().insert(player); world->getStore().insert(player);
world->renderPlayer();
}
mRaceSelected = true; mRaceSelected = true;
buildPlayer(); buildPlayer();