mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 15:30:54 +02:00
Fix issue with offsetRotation being applied twice.
This commit is contained in:
parent
09bb61e4d8
commit
a46cc4e1c3
2 changed files with 6 additions and 2 deletions
|
@ -42,6 +42,8 @@ void Billboard3DOverlay::applyTransformTo(Transform& transform, bool force) {
|
|||
if (force || usecTimestampNow() > _transformExpiry) {
|
||||
PanelAttachable::applyTransformTo(transform, true);
|
||||
transformLookAtCamera(transform);
|
||||
transform.postRotate(getOffsetRotation());
|
||||
if (isFacingAvatar()) {
|
||||
transform.postRotate(getOffsetRotation());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -174,7 +174,9 @@ void OverlayPanel::applyTransformTo(Transform& transform, bool force) {
|
|||
transform.postScale(getOffsetScale());
|
||||
}
|
||||
transformLookAtCamera(transform);
|
||||
transform.postRotate(getOffsetRotation());
|
||||
if (isFacingAvatar()) {
|
||||
transform.postRotate(getOffsetRotation());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue