From ed3d083368842a5a77877a7d417f0bd274363f74 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 22 Aug 2002 08:14:38 +0000 Subject: [PATCH] Fixed the osg::Transform::coompute*() methods so the were using the _referenceFrame correctly, as previously they were doing the exact opposite from what they should have been doing. --- include/osg/Transform | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osg/Transform b/include/osg/Transform index 06f3d12b8..bcea442a5 100644 --- a/include/osg/Transform +++ b/include/osg/Transform @@ -122,7 +122,7 @@ class SG_EXPORT Transform : public Group virtual const bool computeLocalToWorldMatrix(Matrix& matrix,NodeVisitor*) const { - if (_referenceFrame==RELATIVE_TO_ABSOLUTE) + if (_referenceFrame==RELATIVE_TO_PARENTS) { return false; } @@ -135,7 +135,7 @@ class SG_EXPORT Transform : public Group virtual const bool computeWorldToLocalMatrix(Matrix& matrix,NodeVisitor*) const { - if (_referenceFrame==RELATIVE_TO_ABSOLUTE) + if (_referenceFrame==RELATIVE_TO_PARENTS) { return false; }