mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Fix for away.js teleporting user when in desktop mode
away.js calls MyAvatar.centerBody, however centerBody is only meaningful in HMD mode. To guard against this, MyAvatar::centerBody is now a no-op if the application is not in HMD mode.
This commit is contained in:
parent
349f0355ae
commit
6d82410bc5
1 changed files with 4 additions and 0 deletions
|
@ -254,6 +254,10 @@ void MyAvatar::centerBody() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!qApp->isHMDMode()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// derive the desired body orientation from the current hmd orientation, before the sensor reset.
|
||||
auto newBodySensorMatrix = deriveBodyFromHMDSensor(); // Based on current cached HMD position/rotation..
|
||||
|
||||
|
|
Loading…
Reference in a new issue