Explorar o código

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

Raanan Weber %!s(int64=7) %!d(string=hai) anos
pai
achega
019f359c20
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();