提交 19828174 编写于 作者: M Mr.doob

Raycaster: I don't think we need to return intersects there...

上级 3b6446f0
......@@ -60,7 +60,7 @@
if ( localRay.isIntersectionBox( geometry.boundingBox ) === false ) {
return intersects;
return;
}
......@@ -222,7 +222,7 @@
if ( raycaster.ray.isIntersectionSphere( sphere ) === false ) {
return intersects;
return;
}
......@@ -235,7 +235,7 @@
if ( localRay.isIntersectionBox( geometry.boundingBox ) === false ) {
return intersects;
return;
}
......@@ -245,7 +245,7 @@
var material = object.material;
if ( material === undefined ) return intersects;
if ( material === undefined ) return;
var attributes = geometry.attributes;
......@@ -497,7 +497,7 @@
if ( raycaster.ray.isIntersectionSphere( sphere ) === false ) {
return intersects;
return;
}
......
......@@ -35,7 +35,7 @@ THREE.Sprite.prototype.raycast = ( function () {
if ( distance > this.scale.x ) {
return intersects;
return;
}
......@@ -50,7 +50,7 @@ THREE.Sprite.prototype.raycast = ( function () {
};
} )();
}() );
THREE.Sprite.prototype.updateMatrix = function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册