소스 검색

[b3dm] - only append / to working path during load if the path is not empty

Dave Buchhofer 3 년 전
부모
커밋
46ad812c79
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/three/B3DMLoader.js

+ 1 - 1
src/three/B3DMLoader.js

@@ -41,7 +41,7 @@ export class B3DMLoader extends B3DMLoaderBase {
 
 			// GLTFLoader assumes the working path ends in a slash
 			let workingPath = this.workingPath;
-			if ( ! /[\\/]$/.test( workingPath ) ) {
+			if ( ! /[\\/]$/.test( workingPath ) && workingPath.length ) {
 
 				workingPath += '/';