浏览代码

Updated builds

Mr.doob 4 年之前
父节点
当前提交
77a7ffb805
共有 3 个文件被更改,包括 14 次插入2 次删除
  1. 5 1
      build/three.js
  2. 0 0
      build/three.min.js
  3. 9 1
      build/three.module.js

+ 5 - 1
build/three.js

@@ -7789,7 +7789,11 @@
 						index2 = 0;
 
 				for (let i = 0, l = indices.length; i < l; i++) {
-					index = indices[i] * itemSize;
+					if (attribute.isInterleavedBufferAttribute) {
+						index = indices[i] * attribute.data.stride + attribute.offset;
+					} else {
+						index = indices[i] * itemSize;
+					}
 
 					for (let j = 0; j < itemSize; j++) {
 						array2[index2++] = array[index++];

文件差异内容过多而无法显示
+ 0 - 0
build/three.min.js


+ 9 - 1
build/three.module.js

@@ -10162,7 +10162,15 @@ class BufferGeometry extends EventDispatcher {
 
 			for ( let i = 0, l = indices.length; i < l; i ++ ) {
 
-				index = indices[ i ] * itemSize;
+				if ( attribute.isInterleavedBufferAttribute ) {
+
+					index = indices[ i ] * attribute.data.stride + attribute.offset;
+
+				} else {
+
+					index = indices[ i ] * itemSize;
+
+				}
 
 				for ( let j = 0; j < itemSize; j ++ ) {
 

部分文件因为文件数量过多而无法显示