fix fill ring rotation

This commit is contained in:
David Back 2018-02-02 17:05:25 -08:00
parent 1e7717b491
commit ed4cbe2679

View file

@ -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) });
}
}
}