Explorar o código

if no model was provided, skip the model loading function

Raanan Weber %!s(int64=7) %!d(string=hai) anos
pai
achega
8b6f96540d
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      Viewer/src/viewer/viewer.ts

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

@@ -84,7 +84,11 @@ export abstract class AbstractViewer {
      */
     protected onTemplatesLoaded(): Promise<AbstractViewer> {
         return this.initEngine().then(() => {
-            return this.loadModel();
+            if (this.configuration.model) {
+                return this.loadModel();
+            } else {
+                return this.scene;
+            }
         }).then(() => {
             return this;
         });