mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 19:09:42 +00:00
Merge branch 'getBoneByName_searchRoot' into 'master'
make ActorAnimation::getBoneByName take a searchRoot param See merge request OpenMW/openmw!4491
This commit is contained in:
commit
24361426c8
1 changed files with 9 additions and 2 deletions
|
@ -365,10 +365,17 @@ namespace MWRender
|
|||
}
|
||||
|
||||
mScabbard = attachMesh(scabbardName, boneName);
|
||||
if (mScabbard && weaponClass == ESM::WeaponType::Ranged)
|
||||
|
||||
if (!mScabbard || !mScabbard->getNode())
|
||||
return;
|
||||
|
||||
if (weaponClass == ESM::WeaponType::Ranged)
|
||||
resetControllers(mScabbard->getNode());
|
||||
|
||||
osg::Group* weaponNode = getBoneByName("Bip01 Weapon");
|
||||
SceneUtil::FindByNameVisitor findVisitor("Bip01 Weapon");
|
||||
mScabbard->getNode()->accept(findVisitor);
|
||||
osg::Group* weaponNode = findVisitor.mFoundNode;
|
||||
|
||||
if (!weaponNode)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue