瀏覽代碼

GLTFExporter: Fix itemSize check.

Mugen87 5 年之前
父節點
當前提交
8341c947b3
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      examples/js/exporters/GLTFExporter.js
  2. 2 2
      examples/jsm/exporters/GLTFExporter.js

+ 2 - 2
examples/js/exporters/GLTFExporter.js

@@ -508,9 +508,9 @@ THREE.GLTFExporter.prototype = {
 
 					var value;
 
-					if ( attribute.itemSize > 3 ) {
+					if ( attribute.itemSize > 4 ) {
 
-						 // no support for interleaved data for itemSize > 3
+						 // no support for interleaved data for itemSize > 4
 
 						value = attribute.array[ i * attribute.itemSize + a ];
 

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

@@ -530,9 +530,9 @@ GLTFExporter.prototype = {
 
 					var value;
 
-					if ( attribute.itemSize > 3 ) {
+					if ( attribute.itemSize > 4 ) {
 
-						 // no support for interleaved data for itemSize > 3
+						 // no support for interleaved data for itemSize > 4
 
 						value = attribute.array[ i * attribute.itemSize + a ];