diff --git a/components/sceneutil/riggeometry.cpp b/components/sceneutil/riggeometry.cpp index 2ad28affc..ba779df3e 100644 --- a/components/sceneutil/riggeometry.cpp +++ b/components/sceneutil/riggeometry.cpp @@ -337,7 +337,7 @@ void RigGeometry::updateBounds(osg::NodeVisitor *nv) void RigGeometry::updateGeomToSkelMatrix(const osg::NodePath& nodePath) { bool foundSkel = false; - osg::ref_ptr geomToSkelMatrix; + osg::ref_ptr 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); } } diff --git a/components/sceneutil/riggeometry.hpp b/components/sceneutil/riggeometry.hpp index 83fd562de..39829bcb0 100644 --- a/components/sceneutil/riggeometry.hpp +++ b/components/sceneutil/riggeometry.hpp @@ -56,7 +56,7 @@ namespace SceneUtil osg::ref_ptr mSourceTangents; Skeleton* mSkeleton; - osg::ref_ptr mGeomToSkelMatrix; + osg::ref_ptr mGeomToSkelMatrix; osg::ref_ptr mInfluenceMap;