Explorar o código

Update GLTFLoader.js

gilnoycloudinary %!s(int64=6) %!d(string=hai) anos
pai
achega
472ff56ecd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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://,//