Fix isInAir so takes into account the new seated state:

This commit is contained in:
luiscuenca 2019-10-03 10:36:23 -07:00
parent 37f18e2e5e
commit e0d0ec5852
No known key found for this signature in database
GPG key ID: 2387ECD129A6961D

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() {