Просмотр исходного кода

precision is only used in local space

Marc-Sefan Cassola 8 лет назад
Родитель
Сommit
34a44e1379
1 измененных файлов с 2 добавлено и 2 удалено
  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;