paulmasson 7 anni fa
parent
commit
9959d70319
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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.' );