Clear previous model before loading the next one.

This commit is contained in:
kovacsv 2021-12-20 22:58:32 +01:00
parent 716f0c11fc
commit e9f989ffea

View File

@ -41,6 +41,8 @@ OV.EmbeddedViewer = class
LoadModelFromUrls (modelUrls)
{
this.viewer.Clear ();
if (modelUrls === null || modelUrls.length === 0) {
return null;
}