|
@@ -31633,8 +31633,7 @@ var BABYLON;
|
|
|
this._cachedSize = BABYLON.Size.Zero();
|
|
|
this._scene = scene || BABYLON.Engine.LastCreatedScene;
|
|
|
if (this._scene) {
|
|
|
- this._scene.textures.push(this);
|
|
|
- this._scene.onNewTextureAddedObservable.notifyObservers(this);
|
|
|
+ this._scene.addTexture(this);
|
|
|
this.uniqueId = this._scene.getUniqueId();
|
|
|
}
|
|
|
this._uid = null;
|
|
@@ -66680,6 +66679,17 @@ var BABYLON;
|
|
|
|
|
|
//# sourceMappingURL=babylon.rayHelper.js.map
|
|
|
|
|
|
+var __assign = (this && this.__assign) || function () {
|
|
|
+ __assign = Object.assign || function(t) {
|
|
|
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
|
+ s = arguments[i];
|
|
|
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
|
+ t[p] = s[p];
|
|
|
+ }
|
|
|
+ return t;
|
|
|
+ };
|
|
|
+ return __assign.apply(this, arguments);
|
|
|
+};
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
Object.defineProperty(BABYLON.Scene.prototype, "debugLayer", {
|
|
@@ -66722,25 +66732,12 @@ var BABYLON;
|
|
|
}
|
|
|
/** Creates the inspector window. */
|
|
|
DebugLayer.prototype._createInspector = function (config) {
|
|
|
- if (config === void 0) { config = {}; }
|
|
|
if (this.isVisible()) {
|
|
|
return;
|
|
|
}
|
|
|
- var popup = config.popup || false;
|
|
|
- var parentElement = config.parentElement || null;
|
|
|
+ var userOptions = __assign({ overlay: false, showExplorer: true, showInspector: true, embedMode: false, handleResize: true, enablePopup: true }, config);
|
|
|
this.BJSINSPECTOR = this.BJSINSPECTOR || typeof INSPECTOR !== 'undefined' ? INSPECTOR : undefined;
|
|
|
- var options = {
|
|
|
- popup: popup,
|
|
|
- embedMode: config.embedMode != null ? config.embedMode : parentElement ? true : false,
|
|
|
- embedHostRoot: null,
|
|
|
- overlay: config.overlay,
|
|
|
- handleResize: config.handleResize,
|
|
|
- enablePopup: config.enablePopup
|
|
|
- };
|
|
|
- if (parentElement) {
|
|
|
- options.embedHostRoot = parentElement;
|
|
|
- }
|
|
|
- this.BJSINSPECTOR.Inspector.Show(this._scene, options);
|
|
|
+ this.BJSINSPECTOR.Inspector.Show(this._scene, userOptions);
|
|
|
};
|
|
|
/**
|
|
|
* Get if the inspector is visible or not.
|
|
@@ -66756,29 +66753,10 @@ var BABYLON;
|
|
|
this.BJSINSPECTOR.Inspector.Hide();
|
|
|
};
|
|
|
/**
|
|
|
- *
|
|
|
- * Launch the debugLayer.
|
|
|
- *
|
|
|
- * initialTab:
|
|
|
- * | Value | Tab Name |
|
|
|
- * | --- | --- |
|
|
|
- * | 0 | Scene |
|
|
|
- * | 1 | Console |
|
|
|
- * | 2 | Stats |
|
|
|
- * | 3 | Textures |
|
|
|
- * | 4 | Mesh |
|
|
|
- * | 5 | Light |
|
|
|
- * | 6 | Material |
|
|
|
- * | 7 | GLTF |
|
|
|
- * | 8 | GUI |
|
|
|
- * | 9 | Physics |
|
|
|
- * | 10 | Camera |
|
|
|
- * | 11 | Audio |
|
|
|
- *
|
|
|
- * @param config Define the configuration of the inspector
|
|
|
- */
|
|
|
+ * Launch the debugLayer.
|
|
|
+ * @param config Define the configuration of the inspector
|
|
|
+ */
|
|
|
DebugLayer.prototype.show = function (config) {
|
|
|
- if (config === void 0) { config = {}; }
|
|
|
if (typeof this.BJSINSPECTOR == 'undefined') {
|
|
|
// Load inspector and add it to the DOM
|
|
|
BABYLON.Tools.LoadScript(DebugLayer.InspectorURL, this._createInspector.bind(this, config));
|
|
@@ -73708,13 +73686,18 @@ var BABYLON;
|
|
|
*/
|
|
|
CubeTexture.prototype.clone = function () {
|
|
|
var _this = this;
|
|
|
- return BABYLON.SerializationHelper.Clone(function () {
|
|
|
- var scene = _this.getScene();
|
|
|
+ var scene = this.getScene();
|
|
|
+ var uniqueId = 0;
|
|
|
+ var newCubeTexture = BABYLON.SerializationHelper.Clone(function () {
|
|
|
if (!scene) {
|
|
|
return _this;
|
|
|
}
|
|
|
- return new CubeTexture(_this.url, scene, _this._extensions, _this._noMipmap, _this._files);
|
|
|
+ var cubeTexture = new CubeTexture(_this.url, scene, _this._extensions, _this._noMipmap, _this._files);
|
|
|
+ uniqueId = cubeTexture.uniqueId;
|
|
|
+ return cubeTexture;
|
|
|
}, this);
|
|
|
+ newCubeTexture.uniqueId = uniqueId;
|
|
|
+ return newCubeTexture;
|
|
|
};
|
|
|
__decorate([
|
|
|
BABYLON.serialize("rotationY")
|