gil noy преди 6 години
родител
ревизия
835fc845cb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/js/loaders/GLTFLoader.js

+ 1 - 1
examples/js/loaders/GLTFLoader.js

@@ -1250,7 +1250,7 @@ THREE.GLTFLoader = ( function () {
 		
 		// Host Relative URL
 		if ( /^https?:\/\//i.test(path) && /^\//.test(url) ) {
-		path = path.replace( /(^https?:\/\/[^\/]+).*/i , '$1' );
+			path = path.replace( /(^https?:\/\/[^\/]+).*/i , '$1' );
 		}
 
 		// Absolute URL http://,https://,//