We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bdb898 commit 760cf4bCopy full SHA for 760cf4b
src/scene/scene.js
@@ -160,6 +160,7 @@ class Scene extends EventHandler {
160
}
161
162
destroy() {
163
+ this._resetSkyboxModel();
164
this.root = null;
165
this.defaultMaterial.destroy();
166
this.defaultMaterial = null;
@@ -503,10 +504,6 @@ class Scene extends EventHandler {
503
504
this.skybox = cubemaps[0];
505
506
- destroy = function () {
507
- this.skybox = null;
508
- }
509
-
510
// Backwards compatibility
511
addModel(model) {
512
if (this.containsModel(model)) return;
0 commit comments