jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
759 stars 44 forks source link

pixi3d destroy #40

Closed siqi2006 closed 3 years ago

siqi2006 commented 3 years ago

import { Mesh3D, Light, LightingEnvironment } from "pixi3d";

app.desdory(); // error. ↓ AbstractRenderer.prototype.destroy = function (removeView) { for (var o in this.plugins) { this.plugins[o].destroy(); // Here! this.plugins['lighting'].destroy is undefined. and this.plugins['picking'].destroy. this.plugins[o] = null; } . . . }

jnsmalm commented 3 years ago

Thanks! I have fixed this, it will come with next release.