Detect HMD mode properly from rig, in order to enable head IK

This commit is contained in:
luiscuenca 2019-09-12 14:03:17 -07:00
parent f7f0483320
commit 3c043309be
No known key found for this signature in database
GPG key ID: 2387ECD129A6961D

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.