Browse Source

Editor: Improved multi-file loading.

Mr.doob 4 years ago
parent
commit
43927714ad
2 changed files with 3 additions and 1 deletions
  1. 2 0
      editor/js/Loader.js
  2. 1 1
      editor/sw.js

+ 2 - 0
editor/js/Loader.js

@@ -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 ) {

+ 1 - 1
editor/sw.js

@@ -1,4 +1,4 @@
-// r120.1
+// r120.2
 
 const assets = [
 	'./',