Parcourir la source

Updated builds

Mr.doob il y a 4 ans
Parent
commit
77a7ffb805
3 fichiers modifiés avec 14 ajouts et 2 suppressions
  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++];

Fichier diff supprimé car celui-ci est trop grand
+ 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 ++ ) {
 

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff