ソースを参照

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;