From 61bd2b825fa601a6aa2de965aba199317de483c5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 15 Oct 2008 10:07:21 +0000 Subject: [PATCH] From Chris Denham, "I noticed that UFOManipulator _matrix and _inverseMatrix may be inconsistently set due to typo in UFOManipulator::home(). I assume the intention is that _matrix and _inverseMatrix are kept consistent, so corrected file attached. ///////////// OSG 2.6 ////////////////// _inverseMatrix.makeLookAt( _homeEye, _homeCenter, _homeUp ); _matrix.invert( _matrix ); ///////////// after typo correction ///////////////// _inverseMatrix.makeLookAt( _homeEye, _homeCenter, _homeUp ); _matrix.invert( _inverseMatrix ); ///////////////////////////////////////" --- src/osgGA/UFOManipulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgGA/UFOManipulator.cpp b/src/osgGA/UFOManipulator.cpp index 46d3a6b3c..5f1877088 100644 --- a/src/osgGA/UFOManipulator.cpp +++ b/src/osgGA/UFOManipulator.cpp @@ -210,7 +210,7 @@ void UFOManipulator::home(double) _directionRotationRate = 0.0; _inverseMatrix.makeLookAt( _homeEye, _homeCenter, _homeUp ); - _matrix.invert( _matrix ); + _matrix.invert( _inverseMatrix ); _offset.makeIdentity();