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

Merge branch 'patch-4' of git://github.com/gero3/three.js into dev

......@@ -10,7 +10,7 @@
this.ray = new THREE.Ray( origin, direction );
// normalized ray.direction required for accurate distance calculations
if( this.ray.direction.length() > 0 ) {
if( this.ray.direction.lengthSq() > 0 ) {
this.ray.direction.normalize();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册