瀏覽代碼

call ctx.init

JonStargaryen 4 年之前
父節點
當前提交
ecdfe44ea3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/viewer/index.ts

+ 1 - 0
src/viewer/index.ts

@@ -142,6 +142,7 @@ export class Viewer {
             }),
         }
 
+        this.plugin.init();
         ReactDOM.render(React.createElement(Plugin, { plugin: this.plugin }), target)
 
         const renderer = this.plugin.canvas3d!.props.renderer;