@onerjs/core 8.54.8 → 8.55.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onerjs/core",
3
- "version": "8.54.8",
3
+ "version": "8.55.1",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "types": "index.d.ts",
package/scene.pure.js CHANGED
@@ -4725,7 +4725,8 @@ export class Scene {
4725
4725
  this._disposeList(this.lights);
4726
4726
  // Release materials
4727
4727
  if (this._defaultMaterial) {
4728
- this._defaultMaterial.dispose();
4728
+ this._defaultMaterial.dispose(true);
4729
+ this._defaultMaterial = null;
4729
4730
  }
4730
4731
  this._disposeList(this.multiMaterials);
4731
4732
  this._disposeList(this.materials);