Explorar o código

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

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
b702d22b9a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 );