forked from teamnwah/openmw-tes3coop
Fix build error in OSG_USE_FLOAT_MATRIX=OFF mode due to a double implicit conversion to double (pun doubly intended)
This commit is contained in:
parent
0be811c519
commit
30b101b175
2 changed files with 3 additions and 3 deletions
|
@ -337,7 +337,7 @@ void RigGeometry::updateBounds(osg::NodeVisitor *nv)
|
|||
void RigGeometry::updateGeomToSkelMatrix(const osg::NodePath& nodePath)
|
||||
{
|
||||
bool foundSkel = false;
|
||||
osg::ref_ptr<osg::RefMatrixf> geomToSkelMatrix;
|
||||
osg::ref_ptr<osg::RefMatrix> geomToSkelMatrix;
|
||||
for (osg::NodePath::const_iterator it = nodePath.begin(); it != nodePath.end(); ++it)
|
||||
{
|
||||
osg::Node* node = *it;
|
||||
|
@ -351,7 +351,7 @@ void RigGeometry::updateGeomToSkelMatrix(const osg::NodePath& nodePath)
|
|||
if (osg::Transform* trans = node->asTransform())
|
||||
{
|
||||
if (!geomToSkelMatrix)
|
||||
geomToSkelMatrix = new osg::RefMatrixf;
|
||||
geomToSkelMatrix = new osg::RefMatrix;
|
||||
trans->computeWorldToLocalMatrix(*geomToSkelMatrix, NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace SceneUtil
|
|||
osg::ref_ptr<osg::Vec4Array> mSourceTangents;
|
||||
Skeleton* mSkeleton;
|
||||
|
||||
osg::ref_ptr<osg::RefMatrixf> mGeomToSkelMatrix;
|
||||
osg::ref_ptr<osg::RefMatrix> mGeomToSkelMatrix;
|
||||
|
||||
osg::ref_ptr<InfluenceMap> mInfluenceMap;
|
||||
|
||||
|
|
Loading…
Reference in a new issue