Merge pull request #16283 from luiscuenca/fixInAirWhileSitting

DEV-2217: Fix MyAvatar::isInAir() so takes into account the new seated state
This commit is contained in:
Shannon Romano 2019-10-04 11:56:02 -07:00 committed by GitHub
commit 0b5299162b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4387,7 +4387,8 @@ bool MyAvatar::isFlying() {
bool MyAvatar::isInAir() {
// If Avatar is Hover, Falling, or Taking off, they are in Air.
return _characterController.getState() != CharacterController::State::Ground;
return _characterController.getState() != CharacterController::State::Ground &&
_characterController.getState() != CharacterController::State::Seated;
}
bool MyAvatar::getFlyingEnabled() {