浏览代码

[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 += '/';