mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
fix fill ring rotation
This commit is contained in:
parent
1e7717b491
commit
ed4cbe2679
1 changed files with 5 additions and 1 deletions
|
@ -2296,7 +2296,11 @@ SelectionDisplay = (function() {
|
|||
|
||||
// not sure why but this seems to be needed to fix an reverse rotation for yaw ring only
|
||||
if (direction === ROTATE_DIRECTION.YAW) {
|
||||
Overlays.editOverlay(handleRotateCurrentRing, { rotation: worldRotationZ });
|
||||
if (spaceMode === SPACE_LOCAL) {
|
||||
Overlays.editOverlay(handleRotateCurrentRing, { rotation: worldRotationZ });
|
||||
} else {
|
||||
Overlays.editOverlay(handleRotateCurrentRing, { rotation: Quat.fromPitchYawRollDegrees(-90, 0, 0) });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue