Store the current model in importer.

This commit is contained in:
kovacsv 2021-12-02 15:10:00 +01:00
parent 254bd792e8
commit c3b18803ac

View File

@ -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 ();