mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Merge pull request #9587 from hyperlogic/bug-fix/tablet-ui-network-2d-tablet
Tablet-ui: fix tablet orientation for users in 2d desktop mode
This commit is contained in:
commit
f907af1b9b
1 changed files with 2 additions and 2 deletions
|
@ -900,7 +900,7 @@ glm::quat Avatar::getAbsoluteJointRotationInObjectFrame(int index) const {
|
|||
_skeletonModel->getAbsoluteJointRotationInRigFrame(headJointIndex, rotation);
|
||||
}
|
||||
}
|
||||
return rotation;
|
||||
return Quaternions::Y_180 * rotation * Quaternions::Y_180;
|
||||
}
|
||||
default: {
|
||||
glm::quat rotation;
|
||||
|
@ -936,7 +936,7 @@ glm::vec3 Avatar::getAbsoluteJointTranslationInObjectFrame(int index) const {
|
|||
_skeletonModel->getAbsoluteJointTranslationInRigFrame(headJointIndex, translation);
|
||||
}
|
||||
}
|
||||
return translation;
|
||||
return Quaternions::Y_180 * translation * Quaternions::Y_180;
|
||||
}
|
||||
default: {
|
||||
glm::vec3 translation;
|
||||
|
|
Loading…
Reference in a new issue