瀏覽代碼

GLTFExporter: handle count=Infinity in processAccessor (#26898)

Co-authored-by: Mr David <[email protected]>
David 1 年之前
父節點
當前提交
aeb1589bd8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/exporters/GLTFExporter.js

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

@@ -1165,7 +1165,7 @@ class GLTFWriter {
 		}
 
 		if ( start === undefined ) start = 0;
-		if ( count === undefined ) count = attribute.count;
+		if ( count === undefined || count === Infinity ) count = attribute.count;
 
 		// Skip creating an accessor if the attribute doesn't have data to export
 		if ( count === 0 ) return null;