1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 21:15:33 +00:00

Pass the node path instead of the node visitor

This commit is contained in:
scrawl 2016-07-02 19:27:19 +02:00
parent 6fa95e72c5
commit d5f497c47d
2 changed files with 4 additions and 4 deletions

View file

@ -303,7 +303,7 @@ void RigGeometry::updateBounds(osg::NodeVisitor *nv)
mSkeleton->updateBoneMatrices(nv->getTraversalNumber()); mSkeleton->updateBoneMatrices(nv->getTraversalNumber());
updateGeomToSkelMatrix(nv); updateGeomToSkelMatrix(nv->getNodePath());
osg::BoundingBox box; osg::BoundingBox box;
for (BoneSphereMap::const_iterator it = mBoneSphereMap.begin(); it != mBoneSphereMap.end(); ++it) for (BoneSphereMap::const_iterator it = mBoneSphereMap.begin(); it != mBoneSphereMap.end(); ++it)
@ -321,11 +321,11 @@ void RigGeometry::updateBounds(osg::NodeVisitor *nv)
getParent(i)->dirtyBound(); getParent(i)->dirtyBound();
} }
void RigGeometry::updateGeomToSkelMatrix(osg::NodeVisitor *nv) void RigGeometry::updateGeomToSkelMatrix(const osg::NodePath& nodePath)
{ {
mSkelToGeomPath.clear(); mSkelToGeomPath.clear();
bool foundSkel = false; bool foundSkel = false;
for (osg::NodePath::const_iterator it = nv->getNodePath().begin(); it != nv->getNodePath().end(); ++it) for (osg::NodePath::const_iterator it = nodePath.begin(); it != nodePath.end(); ++it)
{ {
if (!foundSkel) if (!foundSkel)
{ {

View file

@ -80,7 +80,7 @@ namespace SceneUtil
bool initFromParentSkeleton(osg::NodeVisitor* nv); bool initFromParentSkeleton(osg::NodeVisitor* nv);
void updateGeomToSkelMatrix(osg::NodeVisitor* nv); void updateGeomToSkelMatrix(const osg::NodePath& nodePath);
}; };
} }