mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 10:23:30 +02:00
Remove one change, turned out to be unnecessary.
This commit is contained in:
parent
3080539b63
commit
8d65e14193
1 changed files with 2 additions and 2 deletions
|
@ -2822,6 +2822,7 @@ void MyAvatar::setFlyingEnabled(bool enabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Flying should always be enabled for desktop users, preference may be set for HMD.
|
||||||
_enableFlying = enabled;
|
_enableFlying = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2837,8 +2838,7 @@ bool MyAvatar::isInAir() {
|
||||||
|
|
||||||
bool MyAvatar::getFlyingEnabled() {
|
bool MyAvatar::getFlyingEnabled() {
|
||||||
// May return true even if client is not allowed to fly in the zone.
|
// May return true even if client is not allowed to fly in the zone.
|
||||||
// Should always return true if in desktop mode.
|
return _enableFlying;
|
||||||
return (qApp->isHMDMode()) ? _enableFlying : true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Public interface for targetscale
|
// Public interface for targetscale
|
||||||
|
|
Loading…
Reference in a new issue