Skip to content

Commit

Permalink
Update builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Sep 7, 2019
1 parent d98291b commit fda056f
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 234 deletions.
94 changes: 59 additions & 35 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -34481,6 +34481,7 @@
var itemsLoaded = 0;
var itemsTotal = 0;
var urlModifier = undefined;
var handlers = [];

// Refer to #5689 for the reason why we don't set .onStart
// in the constructor
Expand Down Expand Up @@ -34557,10 +34558,52 @@
this.setURLModifier = function ( transform ) {

urlModifier = transform;

return this;

};

this.addHandler = function ( regex, loader ) {

handlers.push( regex, loader );

return this;

};

this.removeHandler = function ( regex ) {

var index = handlers.indexOf( regex );

if ( index !== - 1 ) {

handlers.splice( index, 2 );

}

return this;

};

this.getHandler = function ( file ) {

for ( var i = 0, l = handlers.length; i < l; i += 2 ) {

var regex = handlers[ i ];
var loader = handlers[ i + 1 ];

if ( regex.test( file ) ) {

return loader;

}

}

return null;

};

}

var DefaultLoadingManager = new LoadingManager();
Expand Down Expand Up @@ -34608,41 +34651,6 @@

} );

//

Loader.Handlers = {

handlers: [],

add: function ( regex, loader ) {

this.handlers.push( regex, loader );

},

get: function ( file ) {

var handlers = this.handlers;

for ( var i = 0, l = handlers.length; i < l; i += 2 ) {

var regex = handlers[ i ];
var loader = handlers[ i + 1 ];

if ( regex.test( file ) ) {

return loader;

}

}

return null;

}

};

/**
* @author mrdoob / http://mrdoob.com/
*/
Expand Down Expand Up @@ -46982,6 +46990,22 @@

} );

Loader.Handlers = {

add: function ( /* regex, loader */ ) {

console.error( 'THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.' );

},

get: function ( /* file */ ) {

console.error( 'THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.' );

}

};

function XHRLoader( manager ) {

console.warn( 'THREE.XHRLoader has been renamed to THREE.FileLoader.' );
Expand Down
Loading

0 comments on commit fda056f

Please sign in to comment.