Removed global variable i (hard to find this one...)
This commit is contained in:
parent
c2c25a5588
commit
59988b1c8b
|
@ -29,7 +29,7 @@ CameraSelecter.prototype.pointedCamera = function() {
|
||||||
var bestIndex;
|
var bestIndex;
|
||||||
|
|
||||||
// Looking for cameras
|
// 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].object.raycastable && !(intersects[i].object instanceof THREE.Line)) {
|
||||||
if ((intersects[i].distance > 0.5 && minDistance === undefined) || (intersects[i].distance < minDistance )) {
|
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)) {
|
if (!(intersects[i].object instanceof THREE.Mesh && intersects[i].object.material.opacity < 0.1)) {
|
||||||
|
|
Loading…
Reference in New Issue