Ver Fonte

Update error test

paulmasson há 7 anos atrás
pai
commit
9959d70319
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/core/DirectGeometry.js

+ 1 - 1
src/core/DirectGeometry.js

@@ -140,7 +140,7 @@ Object.assign( DirectGeometry.prototype, {
 
 		//
 
-		if ( faces.length === 0 ) {
+		if ( vertices.length > 0 && faces.length === 0 ) {
 
 			console.error( 'THREE.DirectGeometry: Faceless geometries are not supported.' );