forked from teamnwah/openmw-tes3coop
Fix a typo
This commit is contained in:
parent
fc7456e0a1
commit
75a464f7ec
1 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ bool RigGeometry::initFromParentSkeleton(osg::NodeVisitor* nv)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void accummulateMatrix(const osg::Matrixf& invBindMatrix, const osg::Matrixf& matrix, float weight, osg::Matrixf& result)
|
void accumulateMatrix(const osg::Matrixf& invBindMatrix, const osg::Matrixf& matrix, float weight, osg::Matrixf& result)
|
||||||
{
|
{
|
||||||
osg::Matrixf m = invBindMatrix * matrix;
|
osg::Matrixf m = invBindMatrix * matrix;
|
||||||
float* ptr = m.ptr();
|
float* ptr = m.ptr();
|
||||||
|
@ -246,7 +246,7 @@ void RigGeometry::update(osg::NodeVisitor* nv)
|
||||||
const osg::Matrix& invBindMatrix = weightIt->first.second;
|
const osg::Matrix& invBindMatrix = weightIt->first.second;
|
||||||
float weight = weightIt->second;
|
float weight = weightIt->second;
|
||||||
const osg::Matrixf& boneMatrix = bone->mMatrixInSkeletonSpace;
|
const osg::Matrixf& boneMatrix = bone->mMatrixInSkeletonSpace;
|
||||||
accummulateMatrix(invBindMatrix, boneMatrix, weight, resultMat);
|
accumulateMatrix(invBindMatrix, boneMatrix, weight, resultMat);
|
||||||
}
|
}
|
||||||
resultMat = resultMat * geomToSkel;
|
resultMat = resultMat * geomToSkel;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue