Преглед на файлове

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

Raanan Weber преди 7 години
родител
ревизия
019f359c20
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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();