forked from teamnwah/openmw-tes3coop
Fix feet and entity part detachment
This commit is contained in:
parent
bd74ab027a
commit
b505d4ace0
1 changed files with 3 additions and 3 deletions
|
@ -391,7 +391,7 @@ void NpcAnimation::removeEntities(NifOgre::EntityList &entities)
|
||||||
Ogre::SceneManager *sceneMgr = mInsert->getCreator();
|
Ogre::SceneManager *sceneMgr = mInsert->getCreator();
|
||||||
for(size_t i = 0;i < entities.mEntities.size();i++)
|
for(size_t i = 0;i < entities.mEntities.size();i++)
|
||||||
{
|
{
|
||||||
mEntityList.mSkelBase->detachObjectFromBone(entities.mEntities[i]);
|
entities.mEntities[i]->detachFromParent();
|
||||||
sceneMgr->destroyEntity(entities.mEntities[i]);
|
sceneMgr->destroyEntity(entities.mEntities[i]);
|
||||||
}
|
}
|
||||||
entities.mEntities.clear();
|
entities.mEntities.clear();
|
||||||
|
@ -533,10 +533,10 @@ bool NpcAnimation::addOrReplaceIndividualPart(int type, int group, int priority,
|
||||||
lupperArm = insertBoundedPart(mesh, "Left Upper Arm");
|
lupperArm = insertBoundedPart(mesh, "Left Upper Arm");
|
||||||
break;
|
break;
|
||||||
case ESM::PRT_RFoot: //15
|
case ESM::PRT_RFoot: //15
|
||||||
lupperArm = insertBoundedPart(mesh, "Right Foot");
|
rfoot = insertBoundedPart(mesh, "Right Foot");
|
||||||
break;
|
break;
|
||||||
case ESM::PRT_LFoot: //16
|
case ESM::PRT_LFoot: //16
|
||||||
lupperArm = insertBoundedPart(mesh, "Left Foot");
|
lfoot = insertBoundedPart(mesh, "Left Foot");
|
||||||
break;
|
break;
|
||||||
case ESM::PRT_RAnkle: //17
|
case ESM::PRT_RAnkle: //17
|
||||||
rAnkle = insertBoundedPart(mesh, "Right Ankle");
|
rAnkle = insertBoundedPart(mesh, "Right Ankle");
|
||||||
|
|
Loading…
Reference in a new issue