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.
This commit is contained in:
Robert Osfield 2002-08-22 08:14:38 +00:00
parent 942e23caf3
commit ed3d083368

View File

@ -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;
}