Build fix.

This commit is contained in:
kovacsv 2021-08-06 22:34:53 +02:00
parent c042fa26b6
commit f365fc4fbd

View File

@ -80,6 +80,7 @@ OV.ThreeImporter = class extends OV.ImporterBase
this.OnThreeObjectsLoaded (loadedScene, onFinish);
});
const mainFileUrl = OV.CreateObjectUrl (fileContent);
loadingManager.setURLModifier ((url) => {
if (url === mainFileUrl) {
return url;
@ -92,7 +93,6 @@ OV.ThreeImporter = class extends OV.ImporterBase
return fileUrl;
});
const mainFileUrl = OV.CreateObjectUrl (fileContent);
const loader = this.CreateLoader (loadingManager);
if (loader === null) {
onFinish ();