Browse Source

precision is only used in local space

Marc-Sefan Cassola 7 years ago
parent
commit
34a44e1379
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/objects/Line.js

+ 2 - 2
src/objects/Line.js

@@ -54,8 +54,8 @@ Line.prototype = Object.assign( Object.create( Object3D.prototype ), {
 			if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 			if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 
 
 			sphere.copy( geometry.boundingSphere );
 			sphere.copy( geometry.boundingSphere );
-			sphere.applyMatrix4( matrixWorld );
-			sphere.radius += precision;
+      sphere.radius += precision;
+      sphere.applyMatrix4( matrixWorld );
 
 
 			if ( raycaster.ray.intersectsSphere( sphere ) === false ) return;
 			if ( raycaster.ray.intersectsSphere( sphere ) === false ) return;