浏览代码

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;
         });