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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user