StandardManipulator: use proper bit mask when clearing a relative flag

This commit is contained in:
Philippe Renon
2016-09-14 14:32:35 +02:00
parent b7bf94b4c6
commit e367792f6d

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.