From c3b18803acb4655529c2d2ee5baab0cf65d6e1e3 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Thu, 2 Dec 2021 15:10:00 +0100 Subject: [PATCH] Store the current model in importer. --- source/import/importer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/import/importer.js b/source/import/importer.js index d0d9eec..2d0fe60 100644 --- a/source/import/importer.js +++ b/source/import/importer.js @@ -90,7 +90,8 @@ OV.Importer = class new OV.ImporterThreeFbx (), new OV.ImporterThreeDae (), new OV.ImporterThreeWrl (), - new OV.ImporterThree3mf () + new OV.ImporterThree3mf (), + new OV.ImporterThreeSvg () ]; this.fileList = new OV.FileList (); this.model = null; @@ -214,9 +215,10 @@ OV.Importer = class return fileAccessor.GetTextureBuffer (filePath); }, onSuccess : () => { + this.model = importer.GetModel (); let result = new OV.ImportResult (); result.mainFile = mainFile.file.name; - result.model = importer.GetModel (); + result.model = this.model; result.usedFiles = this.usedFiles; result.missingFiles = this.missingFiles; result.upVector = importer.GetUpDirection ();