Browse Source

Updated builds.

Mr.doob 2 years ago
parent
commit
9db83d811e
4 changed files with 3 additions and 3 deletions
  1. 1 1
      build/three.cjs
  2. 1 1
      build/three.js
  3. 0 0
      build/three.min.js
  4. 1 1
      build/three.module.js

+ 1 - 1
build/three.cjs

@@ -1081,7 +1081,7 @@ class Matrix3 {
 function arrayNeedsUint32(array) {
 	// assumes larger values usually on last
 	for (let i = array.length - 1; i >= 0; --i) {
-		if (array[i] > 65535) return true;
+		if (array[i] >= 65535) return true; // account for PRIMITIVE_RESTART_FIXED_INDEX, #24565
 	}
 
 	return false;

+ 1 - 1
build/three.js

@@ -1083,7 +1083,7 @@
 	function arrayNeedsUint32(array) {
 		// assumes larger values usually on last
 		for (let i = array.length - 1; i >= 0; --i) {
-			if (array[i] > 65535) return true;
+			if (array[i] >= 65535) return true; // account for PRIMITIVE_RESTART_FIXED_INDEX, #24565
 		}
 
 		return false;

File diff suppressed because it is too large
+ 0 - 0
build/three.min.js


+ 1 - 1
build/three.module.js

@@ -1392,7 +1392,7 @@ function arrayNeedsUint32( array ) {
 
 	for ( let i = array.length - 1; i >= 0; -- i ) {
 
-		if ( array[ i ] > 65535 ) return true;
+		if ( array[ i ] >= 65535 ) return true; // account for PRIMITIVE_RESTART_FIXED_INDEX, #24565
 
 	}
 

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