瀏覽代碼

DRACOLoader: Reverted non-indexed geometry change.

Mr.doob 5 年之前
父節點
當前提交
b537ebda9c
共有 2 個文件被更改,包括 2 次插入2 次删除
  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 );
 
 		}