Browse Source

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

Dave Buchhofer 3 năm trước cách đây
mục cha
commit
46ad812c79
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 += '/';