mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:12:46 +02:00
cleanup comments and dead code
This commit is contained in:
parent
ec5ba59f0e
commit
eae1e45ada
1 changed files with 0 additions and 12 deletions
|
@ -1920,7 +1920,6 @@ SelectionDisplay = (function () {
|
||||||
var pitch = angles.x;
|
var pitch = angles.x;
|
||||||
var yaw = angles.y;
|
var yaw = angles.y;
|
||||||
var roll = angles.z;
|
var roll = angles.z;
|
||||||
var currentRotation;
|
|
||||||
|
|
||||||
originalRotation = properties.rotation;
|
originalRotation = properties.rotation;
|
||||||
originalPitch = pitch;
|
originalPitch = pitch;
|
||||||
|
@ -1934,7 +1933,6 @@ SelectionDisplay = (function () {
|
||||||
somethingClicked = true;
|
somethingClicked = true;
|
||||||
overlayOrientation = yawHandleRotation;
|
overlayOrientation = yawHandleRotation;
|
||||||
overlayCenter = yawCenter;
|
overlayCenter = yawCenter;
|
||||||
currentRotation = yaw;
|
|
||||||
yawZero = result.intersection;
|
yawZero = result.intersection;
|
||||||
rotationNormal = yawNormal;
|
rotationNormal = yawNormal;
|
||||||
break;
|
break;
|
||||||
|
@ -1944,7 +1942,6 @@ SelectionDisplay = (function () {
|
||||||
somethingClicked = true;
|
somethingClicked = true;
|
||||||
overlayOrientation = pitchHandleRotation;
|
overlayOrientation = pitchHandleRotation;
|
||||||
overlayCenter = pitchCenter;
|
overlayCenter = pitchCenter;
|
||||||
currentRotation = pitch;
|
|
||||||
pitchZero = result.intersection;
|
pitchZero = result.intersection;
|
||||||
rotationNormal = pitchNormal;
|
rotationNormal = pitchNormal;
|
||||||
break;
|
break;
|
||||||
|
@ -1954,7 +1951,6 @@ SelectionDisplay = (function () {
|
||||||
somethingClicked = true;
|
somethingClicked = true;
|
||||||
overlayOrientation = rollHandleRotation;
|
overlayOrientation = rollHandleRotation;
|
||||||
overlayCenter = rollCenter;
|
overlayCenter = rollCenter;
|
||||||
currentRotation = roll;
|
|
||||||
rollZero = result.intersection;
|
rollZero = result.intersection;
|
||||||
rotationNormal = rollNormal;
|
rotationNormal = rollNormal;
|
||||||
break;
|
break;
|
||||||
|
@ -1972,14 +1968,6 @@ SelectionDisplay = (function () {
|
||||||
|
|
||||||
if (somethingClicked) {
|
if (somethingClicked) {
|
||||||
|
|
||||||
if (currentRotation < 0) {
|
|
||||||
currentRotation = currentRotation + 360;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: need to place correctly....
|
|
||||||
print(" attempting to show overlays:" + somethingClicked);
|
|
||||||
print(" currentRotation:" + currentRotation);
|
|
||||||
|
|
||||||
Overlays.editOverlay(rotateOverlayTarget, { visible: true, rotation: overlayOrientation, position: overlayCenter });
|
Overlays.editOverlay(rotateOverlayTarget, { visible: true, rotation: overlayOrientation, position: overlayCenter });
|
||||||
Overlays.editOverlay(rotateOverlayInner, { visible: true, rotation: overlayOrientation, position: overlayCenter });
|
Overlays.editOverlay(rotateOverlayInner, { visible: true, rotation: overlayOrientation, position: overlayCenter });
|
||||||
Overlays.editOverlay(rotateOverlayOuter, { visible: true, rotation: overlayOrientation, position: overlayCenter, startAt: 0, endAt: 360 });
|
Overlays.editOverlay(rotateOverlayOuter, { visible: true, rotation: overlayOrientation, position: overlayCenter, startAt: 0, endAt: 360 });
|
||||||
|
|
Loading…
Reference in a new issue