Updateds NEWS for the 0.8.44 release.

Change the osg::NodeVisitor::getLocalToWorldMatrix() /
getWorldToLocalMatrix() methods so it do not initilize the matrix being
passed to them, and assume the the users has already initiliazed them
appropriately, such as to take account of camera positions.
This commit is contained in:
Robert Osfield
2002-02-10 23:19:47 +00:00
parent 7d03f8a548
commit 7bb160d27f
2 changed files with 32 additions and 2 deletions

View File

@@ -98,7 +98,6 @@ class TransformVisitor : public NodeVisitor
const bool NodeVisitor::getLocalToWorldMatrix(Matrix& matrix, MatrixMode mode, Node* node)
{
matrix.makeIdentity();
TransformVisitor tv(matrix,mode,TransformVisitor::LOCAL_TO_WORLD,this);
for(NodePath::iterator itr=_nodePath.begin();
itr!=_nodePath.end();
@@ -112,7 +111,6 @@ const bool NodeVisitor::getLocalToWorldMatrix(Matrix& matrix, MatrixMode mode, N
const bool NodeVisitor::getWorldToLocalMatrix(Matrix& matrix, MatrixMode mode, Node* node)
{
matrix.makeIdentity();
TransformVisitor tv(matrix,mode,TransformVisitor::WORLD_TO_LOCAL,this);
for(NodePath::iterator itr=_nodePath.begin();
itr!=_nodePath.end();