Skip to content

Commit

Permalink
Editor: Improved multi-file loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 17, 2020
1 parent a3acfb9 commit 4392771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions editor/js/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ function Loader( editor ) {
var manager = new THREE.LoadingManager();
manager.setURLModifier( function ( url ) {

url = url.replace( /^(\.?\/)/, '' ); // remove './'

var file = filesMap[ url ];

if ( file ) {
Expand Down
2 changes: 1 addition & 1 deletion editor/sw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// r120.1
// r120.2

const assets = [
'./',
Expand Down

0 comments on commit 4392771

Please sign in to comment.