Explorar o código

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

Dave Buchhofer %!s(int64=3) %!d(string=hai) anos
pai
achega
46ad812c79
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 += '/';