mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-19 09:46:13 +02:00
Fix isInAir so takes into account the new seated state:
This commit is contained in:
parent
37f18e2e5e
commit
e0d0ec5852
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue