remove unused code

This commit is contained in:
PhilipRosedale 2016-02-26 16:50:37 -08:00
parent 7fd88793dc
commit 47504a068e
2 changed files with 0 additions and 23 deletions

View file

@ -979,8 +979,6 @@ function mouseClickEvent(event) {
if (!event.isShifted) {
selectionManager.setSelections([foundEntity]);
Vec3.print("found object, intersection = ", result.intersection);
selectionManager.setPickPlanePosition(result.intersection);
} else {
selectionManager.addEntity(foundEntity, true);
}

View file

@ -87,11 +87,6 @@ SelectionManager = (function() {
y: 0,
z: 0
};
that.pickPlanePosition = {
x: 0,
y: 0,
z: 0
};
that.saveProperties = function() {
that.savedProperties = {};
@ -119,13 +114,6 @@ SelectionManager = (function() {
that._update();
};
that.setPickPlanePosition = function(position) {
that.pickPlanePosition.x = position.x;
that.pickPlanePosition.y = position.y;
that.pickPlanePosition.z = position.z;
Vec3.print("that.pickPlanePosition = ", that.pickPlanePosition);
};
that.addEntity = function(entityID, toggleSelection) {
if (entityID) {
var idx = -1;
@ -2327,15 +2315,6 @@ SelectionDisplay = (function() {
var vector = Vec3.subtract(pick, initialXZPick);
Vec3.print("Pick Plane Position", translateXZTool.pickPlanePosition);
/*
if (pickRay.origin.y < this.pickPlanePosition.y) {
vector.x *= -1.0;
vector.z *= -1.0;
} */
// If shifted, constrain to one axis
if (event.isShifted) {
if (Math.abs(vector.x) > Math.abs(vector.z)) {