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 ); ///////////////////////////////////////"
This commit is contained in:
@@ -210,7 +210,7 @@ void UFOManipulator::home(double)
|
||||
_directionRotationRate = 0.0;
|
||||
|
||||
_inverseMatrix.makeLookAt( _homeEye, _homeCenter, _homeUp );
|
||||
_matrix.invert( _matrix );
|
||||
_matrix.invert( _inverseMatrix );
|
||||
|
||||
_offset.makeIdentity();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user