Removed global variable i (hard to find this one...)

This commit is contained in:
Thomas FORGIONE 2015-06-03 10:22:20 +02:00
parent c2c25a5588
commit 59988b1c8b
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ CameraSelecter.prototype.pointedCamera = function() {
var bestIndex;
// Looking for cameras
for (i in intersects) {
for (var i in intersects) {
if (intersects[i].object.raycastable && !(intersects[i].object instanceof THREE.Line)) {
if ((intersects[i].distance > 0.5 && minDistance === undefined) || (intersects[i].distance < minDistance )) {
if (!(intersects[i].object instanceof THREE.Mesh && intersects[i].object.material.opacity < 0.1)) {