From 6bb865af25b2dfe03ae7d8dfff107f8e1b514894 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 14 Oct 2001 14:23:03 +0000 Subject: [PATCH] Fixed a bug in Matrix::invert(..) which did not set full_realised=true, so that one Matrices which had not previously be initialized we're erronously initialized later in the code resetting it to identity. --- src/osg/Matrix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osg/Matrix.cpp b/src/osg/Matrix.cpp index c9cb6c47c..6297364e6 100644 --- a/src/osg/Matrix.cpp +++ b/src/osg/Matrix.cpp @@ -442,6 +442,8 @@ bool Matrix::invert( const Matrix& _m ) for ( j = 0; j < n; j++ ) b[ i * n + j] = m[ row[ i]][j + n]; + fully_realized = true; + return true; // It worked }