소스 검색

Update GLTFLoader.js

gilnoycloudinary 6 년 전
부모
커밋
472ff56ecd
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://,//