fixed case for 0.0 as the filter length

This commit is contained in:
amantley 2018-07-03 17:11:19 -07:00
parent 4995b57712
commit 6460c9e861

View file

@ -89,6 +89,8 @@ const float MyAvatar::ZOOM_MAX = 25.0f;
const float MyAvatar::ZOOM_DEFAULT = 1.5f;
const float MIN_SCALE_CHANGED_DELTA = 0.001f;
//#define DEBUG_DRAW_HMD_MOVING_AVERAGE
MyAvatar::MyAvatar(QThread* thread) :
Avatar(thread),
_yawSpeed(YAW_SPEED_DEFAULT),
@ -2176,12 +2178,15 @@ void MyAvatar::setHasAudioEnabledFaceMovement(bool hasAudioEnabledFaceMovement)
}
void MyAvatar::setRotationRecenterFilterLength(float length) {
if (length > 0.01f) {
_rotationRecenterFilterLength = length;
} else {
_rotationRecenterFilterLength = 0.01f;
}
}
void MyAvatar::setRotationThreshold(float angleRadians) {
_rotationThreshold = angleRadians;
qCDebug(interfaceapp) << "setting the rotation threshold " << _rotationThreshold;
}
void MyAvatar::updateOrientation(float deltaTime) {