Merge pull request #16183 from luiscuenca/allowLeaningWhileSeated

BUGZ-1435: Re-enable head IK when seated on HMD
This commit is contained in:
Shannon Romano 2019-09-13 09:03:17 -07:00 committed by GitHub
commit bb7813631d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1958,8 +1958,7 @@ void Rig::updateReactions(const ControllerParameters& params) {
bool isSeated = _state == RigRole::Seated;
bool hipsEnabled = params.primaryControllerFlags[PrimaryControllerType_Hips] & (uint8_t)ControllerFlags::Enabled;
bool hipsEstimated = params.primaryControllerFlags[PrimaryControllerType_Hips] & (uint8_t)ControllerFlags::Estimated;
bool hmdMode = hipsEnabled && !hipsEstimated;
bool hmdMode = hipsEnabled;
if ((reactionPlaying || isSeated) && !hmdMode) {
// TODO: make this smooth.