Refactored AntiSquish::computeUnSquishedMatrix() method to use the parent node path of the AntiSquish node

to compute the required matrix rather than using the NodePath provided by the NodeVistor. This is required
as in osg::computeLocalToWorld() usage case the NodeVisitor pointer is NULL, so the correct matrix isn't possible to compute.



git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14828 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-04-09 18:42:08 +00:00
parent 595a048319
commit 16b19a0c30
2 changed files with 15 additions and 19 deletions

View File

@@ -64,7 +64,7 @@ class OSGMANIPULATOR_EXPORT AntiSquish: public osg::Transform
virtual ~AntiSquish();
bool computeUnSquishedMatrix(const osg::NodeVisitor*,osg::Matrix&) const;
bool computeUnSquishedMatrix(osg::Matrix&) const;
osg::Vec3d _pivot;
bool _usePivot;