From 49113e03dc8a9e35a191376c034ad0761b56c01f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 11 Jan 2011 17:23:22 +0000 Subject: [PATCH] From Mikhail Izmestev, "Current osgManipulator::AntiSquishCallback stops update traversal of childrens." --- src/osgManipulator/AntiSquish.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osgManipulator/AntiSquish.cpp b/src/osgManipulator/AntiSquish.cpp index 5f3afd717..99235d789 100644 --- a/src/osgManipulator/AntiSquish.cpp +++ b/src/osgManipulator/AntiSquish.cpp @@ -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: