소스 검색

Merge branch 'fixLines' of https://github.com/DungFu/three.js into dev

Mr.doob 11 년 전
부모
커밋
b702d22b9a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/core/Projector.js

+ 2 - 0
src/core/Projector.js

@@ -579,6 +579,8 @@ THREE.Projector = function () {
 
 					vertices = object.geometry.vertices;
 
+					if ( vertices.length === 0 ) continue;
+
 					v1 = getNextVertexInPool();
 					v1.positionScreen.copy( vertices[ 0 ] ).applyMatrix4( _modelViewProjectionMatrix );