Commit af97c8ae authored by Mr.doob's avatar Mr.doob
Browse files

Updated builds.

parent eeeffc87
Showing with 65 additions and 8 deletions
+65 -8
......@@ -42511,9 +42511,28 @@ class DataTextureLoader extends Loader {
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( buffer ) {
 
const texData = scope.parse( buffer ); // TODO: Use try/catch here and throw errors in derived loaders, see #26412
let texData;
 
if ( ! texData ) return onError();
try {
texData = scope.parse( buffer );
} catch ( error ) {
if ( onError !== undefined ) {
onError( error );
} else {
console.error( error );
return;
}
}
if ( ! texData ) return onError(); // TODO: Remove this when all loaders properly throw errors
 
if ( texData.image !== undefined ) {
 
......@@ -42516,9 +42516,28 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( buffer ) {
 
const texData = scope.parse( buffer ); // TODO: Use try/catch here and throw errors in derived loaders, see #26412
let texData;
 
if ( ! texData ) return onError();
try {
texData = scope.parse( buffer );
} catch ( error ) {
if ( onError !== undefined ) {
onError( error );
} else {
console.error( error );
return;
}
}
if ( ! texData ) return onError(); // TODO: Remove this when all loaders properly throw errors
 
if ( texData.image !== undefined ) {
 
This diff is collapsed.
......@@ -42509,9 +42509,28 @@ class DataTextureLoader extends Loader {
loader.setWithCredentials( scope.withCredentials );
loader.load( url, function ( buffer ) {
 
const texData = scope.parse( buffer ); // TODO: Use try/catch here and throw errors in derived loaders, see #26412
let texData;
 
if ( ! texData ) return onError();
try {
texData = scope.parse( buffer );
} catch ( error ) {
if ( onError !== undefined ) {
onError( error );
} else {
console.error( error );
return;
}
}
if ( ! texData ) return onError(); // TODO: Remove this when all loaders properly throw errors
 
if ( texData.image !== undefined ) {
 
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment