Merge pull request #131 from filnet/master

StandardManipulator: use proper bit mask when clearing a relative flag
This commit is contained in:
OpenSceneGraph git repository
2016-09-15 07:50:51 +01:00
committed by GitHub

View File

@@ -183,7 +183,7 @@ inline bool StandardManipulator::getRelativeFlag( int index ) const
inline void StandardManipulator::setRelativeFlag( int index, bool value )
{
if( value ) _relativeFlags |= (0x01 << index);
else _relativeFlags &= (~0x01 << index);
else _relativeFlags &= ~(0x01 << index);
}
/// Returns whether manipulator preserves camera's "UP" vector.