File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export class I3DMLoaderBase extends LoaderBase {
90
90
//Store the gltf working path
91
91
const uriSplits = externalUri . split ( / [ \\ / ] / g ) ;
92
92
uriSplits . pop ( ) ;
93
- gltfWorkingPath = uriSplits . join ( '/' ) ;
93
+ gltfWorkingPath = uriSplits . join ( '/' ) + '/' ;
94
94
95
95
promise = fetch ( externalUri , this . fetchOptions )
96
96
. then ( res => {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export class LoaderBase {
45
45
46
46
if ( / ^ [ ^ \\ / ] / . test ( url ) && ! / ^ h t t p / . test ( url ) ) {
47
47
48
- return this . workingPath + '/' + url ;
48
+ return new URL ( url , this . workingPath ) . href ;
49
49
50
50
} else {
51
51
Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ export class TilesRenderer extends TilesRendererBase {
573
573
const cached = tile . cached ;
574
574
const uriSplits = uri . split ( / [ \\ / ] / g ) ;
575
575
uriSplits . pop ( ) ;
576
- const workingPath = uriSplits . join ( '/' ) ;
576
+ const workingPath = uriSplits . join ( '/' ) + '/' ;
577
577
const fetchOptions = this . fetchOptions ;
578
578
579
579
const manager = this . manager ;
You can’t perform that action at this time.
0 commit comments