|
@@ -289,6 +289,7 @@ var INSPECTOR;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ INSPECTOR.Scheduler.getInstance().dispose();
|
|
|
};
|
|
|
/** Open the inspector in a new popup
|
|
|
* Set 'firstTime' to true if there is no inspector created beforehands
|
|
@@ -1041,9 +1042,7 @@ var INSPECTOR;
|
|
|
var MeshAdapter = /** @class */ (function (_super) {
|
|
|
__extends(MeshAdapter, _super);
|
|
|
function MeshAdapter(mesh) {
|
|
|
- var _this = _super.call(this, mesh) || this;
|
|
|
- new BABYLON.Debug.AxesViewer(mesh.getScene());
|
|
|
- return _this;
|
|
|
+ return _super.call(this, mesh) || this;
|
|
|
}
|
|
|
/** Returns the name displayed in the tree */
|
|
|
MeshAdapter.prototype.id = function () {
|
|
@@ -2433,7 +2432,7 @@ var INSPECTOR;
|
|
|
this.pause = false;
|
|
|
/** The list of data to update */
|
|
|
this._updatableProperties = [];
|
|
|
- setInterval(this._update.bind(this), Scheduler.REFRESH_TIME);
|
|
|
+ this.interval = setInterval(this._update.bind(this), Scheduler.REFRESH_TIME);
|
|
|
}
|
|
|
Scheduler.getInstance = function () {
|
|
|
if (!Scheduler._instance) {
|
|
@@ -2461,6 +2460,9 @@ var INSPECTOR;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
+ Scheduler.prototype.dispose = function () {
|
|
|
+ window.clearInterval(this.interval);
|
|
|
+ };
|
|
|
/** All properties are refreshed every 250ms */
|
|
|
Scheduler.REFRESH_TIME = 250;
|
|
|
return Scheduler;
|