瀏覽代碼

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++];

File diff suppressed because it is too large
+ 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 ++ ) {
 

Some files were not shown because too many files changed in this diff