Jelajahi Sumber

when reloading a model, make sure the configuration is updated.

Raanan Weber 7 tahun lalu
induk
melakukan
019f359c20
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      Viewer/src/viewer/viewer.ts

+ 1 - 0
Viewer/src/viewer/viewer.ts

@@ -145,6 +145,7 @@ export abstract class AbstractViewer {
     }
 
     public loadModel(model: any = this.configuration.model, clearScene: boolean = true): Promise<Scene> {
+        this.configuration.model = model;
         let modelUrl = (typeof model === 'string') ? model : model.url;
         let parts = modelUrl.split('/');
         let filename = parts.pop();