소스 검색

Merge remote-tracking branch 'Baccanno/patch-1' into dev

Mr.doob 11 년 전
부모
커밋
986b004755
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/loaders/Loader.js

+ 2 - 1
src/loaders/Loader.js

@@ -146,7 +146,8 @@ THREE.Loader.prototype = {
 		function create_texture( where, name, sourceFile, repeat, offset, wrap, anisotropy ) {
 
 			var isCompressed = /\.dds$/i.test( sourceFile );
-			var fullPath = texturePath + "/" + sourceFile;
+			
+			var fullPath = texturePath + (texturePath.slice(-1) === '/' ? '' : '/') + sourceFile;
 
 			if ( isCompressed ) {