This commit is contained in:
Thomas FORGIONE
2015-07-09 17:48:46 +02:00
parent 007da125ae
commit 18e7285a7f
6 changed files with 9 additions and 9 deletions

View File

@@ -79,7 +79,7 @@ L3D.BaseRecommendation.prototype.raycast = function(raycaster, intersects) {
}
}
};
/**
* Changes the color of the meshes like a HTML link

View File

@@ -134,4 +134,4 @@ L3D.BD.Event.SwitchedLockOption.prototype.send = function() {
};
L3D.BD.Private.sendData(url, data);
}
};

View File

@@ -117,7 +117,7 @@ ObjectClicker.prototype.getPointedObject = function() {
var intersects = this.raycaster.intersectObjects(this.objects, false);
// Avoid non-raycastable objects
for (var i = 0; i < intersects.length && !intersects[i].object.raycastable; i++){};
for (var i = 0; i < intersects.length && !intersects[i].object.raycastable; i++){}
// Objects are sorted by distance in intersects, the best is the first
return intersects[i] !== undefined ? intersects[i].object : undefined;
@@ -162,7 +162,7 @@ ObjectClicker.prototype.click = function() {
this.onClick(this.currentPointedObject, this.mouse.x, this.mouse.y);
}
};
return ObjectClicker;