mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Merge remote branch 'jhooks/clothingarmor'
This commit is contained in:
commit
14ddcc1204
1 changed files with 2 additions and 2 deletions
|
@ -436,14 +436,14 @@ void NpcAnimation::updateParts(){
|
||||||
}
|
}
|
||||||
if(partpriorities[ESM::PRT_RFoot] < 1){
|
if(partpriorities[ESM::PRT_RFoot] < 1){
|
||||||
const ESM::BodyPart *footPart = mEnvironment.mWorld->getStore().bodyParts.search (bodyRaceID + "foot");
|
const ESM::BodyPart *footPart = mEnvironment.mWorld->getStore().bodyParts.search (bodyRaceID + "foot");
|
||||||
if(isBeast)
|
if(isBeast && !footPart)
|
||||||
footPart = mEnvironment.mWorld->getStore().bodyParts.search (bodyRaceID + "feet");
|
footPart = mEnvironment.mWorld->getStore().bodyParts.search (bodyRaceID + "feet");
|
||||||
if(footPart)
|
if(footPart)
|
||||||
addOrReplaceIndividualPart(ESM::PRT_RFoot, -1,1,"meshes\\" + footPart->model);
|
addOrReplaceIndividualPart(ESM::PRT_RFoot, -1,1,"meshes\\" + footPart->model);
|
||||||
}
|
}
|
||||||
if(partpriorities[ESM::PRT_LFoot] < 1){
|
if(partpriorities[ESM::PRT_LFoot] < 1){
|
||||||
const ESM::BodyPart *footPart = mEnvironment.mWorld->getStore().bodyParts.search (bodyRaceID + "foot");
|
const ESM::BodyPart *footPart = mEnvironment.mWorld->getStore().bodyParts.search (bodyRaceID + "foot");
|
||||||
if(isBeast)
|
if(isBeast && !footPart)
|
||||||
footPart = mEnvironment.mWorld->getStore().bodyParts.search (bodyRaceID + "feet");
|
footPart = mEnvironment.mWorld->getStore().bodyParts.search (bodyRaceID + "feet");
|
||||||
if(footPart)
|
if(footPart)
|
||||||
addOrReplaceIndividualPart(ESM::PRT_LFoot, -1,1,"meshes\\" + footPart->model);
|
addOrReplaceIndividualPart(ESM::PRT_LFoot, -1,1,"meshes\\" + footPart->model);
|
||||||
|
|
Loading…
Reference in a new issue