Remove print statements in edit entities

This commit is contained in:
Ryan Huffman 2014-10-23 14:47:07 -07:00
parent 5b5a1745fd
commit 28095e9972

View file

@ -926,7 +926,6 @@ SelectionDisplay = (function () {
}; };
that.updateHandles = function() { that.updateHandles = function() {
// print("Updating handles");
if (SelectionManager.selections.length == 0) { if (SelectionManager.selections.length == 0) {
that.setOverlaysVisible(false); that.setOverlaysVisible(false);
return; return;
@ -1287,7 +1286,6 @@ SelectionDisplay = (function () {
var rotation = null; var rotation = null;
var onBegin = function(event) { var onBegin = function(event) {
print("STARTING: " + stretchMode);
var properties = Entities.getEntityProperties(currentSelection); var properties = Entities.getEntityProperties(currentSelection);
initialProperties = properties; initialProperties = properties;
rotation = spaceMode == SPACE_LOCAL ? properties.rotation : Quat.fromPitchYawRollDegrees(0, 0, 0); rotation = spaceMode == SPACE_LOCAL ? properties.rotation : Quat.fromPitchYawRollDegrees(0, 0, 0);
@ -1365,7 +1363,6 @@ SelectionDisplay = (function () {
}; };
var onEnd = function(event, reason) { var onEnd = function(event, reason) {
print("ENDING: " + stretchMode);
Overlays.editOverlay(xRailOverlay, { visible: false }); Overlays.editOverlay(xRailOverlay, { visible: false });
Overlays.editOverlay(yRailOverlay, { visible: false }); Overlays.editOverlay(yRailOverlay, { visible: false });
Overlays.editOverlay(zRailOverlay, { visible: false }); Overlays.editOverlay(zRailOverlay, { visible: false });
@ -1414,7 +1411,6 @@ SelectionDisplay = (function () {
var absX = Math.abs(changeInDimensions.x); var absX = Math.abs(changeInDimensions.x);
var absY = Math.abs(changeInDimensions.y); var absY = Math.abs(changeInDimensions.y);
var absZ = Math.abs(changeInDimensions.z); var absZ = Math.abs(changeInDimensions.z);
print('abs: ' + absX + ', ' + absY + ', ' + absZ);
var pctChange = 0; var pctChange = 0;
if (absX > absY && absX > absZ) { if (absX > absY && absX > absZ) {
pctChange = changeInDimensions.x / initialProperties.dimensions.x; pctChange = changeInDimensions.x / initialProperties.dimensions.x;
@ -1426,7 +1422,6 @@ SelectionDisplay = (function () {
pctChange = changeInDimensions.z / initialProperties.dimensions.z; pctChange = changeInDimensions.z / initialProperties.dimensions.z;
pctChange = changeInDimensions.z / initialDimensions.z; pctChange = changeInDimensions.z / initialDimensions.z;
} }
print('change: ' + pctChange);
pctChange += 1.0; pctChange += 1.0;
newDimensions = Vec3.multiply(pctChange, initialDimensions); newDimensions = Vec3.multiply(pctChange, initialDimensions);
} else { } else {
@ -1880,7 +1875,6 @@ SelectionDisplay = (function () {
var tool = grabberTools[result.overlayID]; var tool = grabberTools[result.overlayID];
if (tool) { if (tool) {
print("FOUND TOOL! " + tool.mode);
activeTool = tool; activeTool = tool;
mode = tool.mode; mode = tool.mode;
somethingClicked = true; somethingClicked = true;
@ -1980,7 +1974,6 @@ SelectionDisplay = (function () {
if (result.intersects) { if (result.intersects) {
var tool = grabberTools[result.overlayID]; var tool = grabberTools[result.overlayID];
if (tool) { if (tool) {
print("FOUND TOOL! " + tool.mode);
activeTool = tool; activeTool = tool;
mode = tool.mode; mode = tool.mode;
somethingClicked = true; somethingClicked = true;