Explorar el Código

call ctx.init

JonStargaryen hace 4 años
padre
commit
ecdfe44ea3
Se han modificado 1 ficheros con 1 adiciones y 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;