Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default [
jsdoc
},
languageOptions: {
ecmaVersion: 2018,
ecmaVersion: 2022,
sourceType: 'module',
globals: {
...globals.browser,
Expand Down Expand Up @@ -134,7 +134,7 @@ export default [
name: 'editor rules',
files: [ 'editor/**/*.js' ],
languageOptions: {
ecmaVersion: 2020,
ecmaVersion: 2022,
sourceType: 'module'
}
}
Expand Down
2 changes: 2 additions & 0 deletions examples/jsm/loaders/GLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,8 @@ class GLTFMaterialsIorExtension {

materialParams.ior = extension.ior !== undefined ? extension.ior : 1.5;

if ( materialParams.ior === 0 ) materialParams.ior = 1000; // see #26167

return Promise.resolve();

}
Expand Down
7 changes: 4 additions & 3 deletions src/loaders/DataTextureLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { LinearFilter, LinearMipmapLinearFilter, ClampToEdgeWrapping } from '../
import { FileLoader } from './FileLoader.js';
import { DataTexture } from '../textures/DataTexture.js';
import { Loader } from './Loader.js';
import { error } from '../utils.js';

/**
* Abstract base class for loading binary texture formats RGBE, EXR or TGA.
Expand Down Expand Up @@ -57,15 +58,15 @@ class DataTextureLoader extends Loader {

texData = scope.parse( buffer );

} catch ( error ) {
} catch ( e ) {

if ( onError !== undefined ) {

onError( error );
onError( e );

} else {

error( error );
error( e );
return;

}
Expand Down