Explorar o código

call ctx.init

JonStargaryen %!s(int64=4) %!d(string=hai) anos
pai
achega
ecdfe44ea3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;