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

if no model was provided, skip the model loading function

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