From e367792f6d92e49816d4007f6b80140fd22afe01 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Wed, 14 Sep 2016 14:32:35 +0200 Subject: [PATCH] StandardManipulator: use proper bit mask when clearing a relative flag --- include/osgGA/StandardManipulator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osgGA/StandardManipulator b/include/osgGA/StandardManipulator index d61565d74..0cb615dd8 100644 --- a/include/osgGA/StandardManipulator +++ b/include/osgGA/StandardManipulator @@ -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.