Browse Source

DRACOLoader: Reverted non-indexed geometry change.

Mr.doob 5 years ago
parent
commit
b537ebda9c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      examples/js/exporters/DRACOExporter.js
  2. 1 1
      examples/jsm/exporters/DRACOExporter.js

+ 1 - 1
examples/js/exporters/DRACOExporter.js

@@ -86,7 +86,7 @@ THREE.DRACOExporter.prototype = {
 
 			}
 
-			builder.AddFacesToMesh( mesh, vertices.count / 3, faces );
+			builder.AddFacesToMesh( mesh, vertices.count, faces );
 
 		}
 

+ 1 - 1
examples/jsm/exporters/DRACOExporter.js

@@ -90,7 +90,7 @@ DRACOExporter.prototype = {
 
 			}
 
-			builder.AddFacesToMesh( mesh, vertices.count / 3, faces );
+			builder.AddFacesToMesh( mesh, vertices.count, faces );
 
 		}