Преглед на файлове

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