From Mikhail Izmestev, "Current osgManipulator::AntiSquishCallback stops update traversal of childrens."

This commit is contained in:
Robert Osfield
2011-01-11 17:23:22 +00:00
parent 5ed5221178
commit 49113e03dc

View File

@@ -24,7 +24,7 @@ namespace
AntiSquishCallback(AntiSquish* asq) : osg::NodeCallback(), _antiSquish(asq) {}
virtual ~AntiSquishCallback() {};
virtual void operator() (osg::Node*, osg::NodeVisitor* nv)
virtual void operator() (osg::Node* node, osg::NodeVisitor* nv)
{
// Get the node path.
osg::NodePath np = nv->getNodePath();
@@ -40,6 +40,7 @@ namespace
osg::Matrix _unsquishedMatrix = _antiSquish->computeUnSquishedMatrix(localToWorld, flag);
if (flag)
_antiSquish->setMatrix(_unsquishedMatrix);
traverse(node,nv);
}
protected: