Merge pull request #131 from filnet/master
StandardManipulator: use proper bit mask when clearing a relative flag
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user