Skip to content

Commit

Permalink
Merge pull request #11089 from BabylonJS/master
Browse files Browse the repository at this point in the history
5.0.0-alpha.45
  • Loading branch information
mergify[bot] committed Sep 15, 2021
2 parents 026a94d + 36d12f5 commit 2f8f66b
Show file tree
Hide file tree
Showing 85 changed files with 1,915 additions and 1,543 deletions.
6 changes: 5 additions & 1 deletion dist/preview release/babylon.d.ts
Expand Up @@ -33643,6 +33643,10 @@ declare module BABYLON {
* An event triggered when the enabled state of the node changes
*/
get onEnabledStateChangedObservable(): Observable<boolean>;
/**
* An event triggered when the node is cloned
*/
get onClonedObservable(): Observable<Node>;
/**
* Creates a new Node
* @param name the name and id to be given to this node
Expand Down Expand Up @@ -34123,7 +34127,7 @@ declare module BABYLON {
/**
* Sets the Vector3 "result" as the rotated Vector3 "localAxis" in the same rotation than the mesh.
* localAxis is expressed in the mesh local space.
* result is computed in the Wordl space from the mesh World matrix.
* result is computed in the World space from the mesh World matrix.
* @param localAxis axis to rotate
* @param result the resulting transformnode
* @returns this TransformNode.
Expand Down
2 changes: 1 addition & 1 deletion dist/preview release/babylon.js

Large diffs are not rendered by default.

25 changes: 22 additions & 3 deletions dist/preview release/babylon.max.js
Expand Up @@ -26664,6 +26664,7 @@ var Camera = /** @class */ (function (_super) {
Camera.prototype.clone = function (name) {
var camera = _Misc_decorators__WEBPACK_IMPORTED_MODULE_1__["SerializationHelper"].Clone(Camera.GetConstructorFromName(this.getClassName(), name, this.getScene(), this.interaxialDistance, this.isStereoscopicSideBySide), this);
camera.name = name;
this.onClonedObservable.notifyObservers(camera);
return camera;
};
/**
Expand Down Expand Up @@ -55157,7 +55158,7 @@ var ThinEngine = /** @class */ (function () {
*/
// Not mixed with Version for tooling purpose.
get: function () {
return "babylonjs@5.0.0-alpha.44";
return "babylonjs@5.0.0-alpha.45";
},
enumerable: false,
configurable: true
Expand All @@ -55167,7 +55168,7 @@ var ThinEngine = /** @class */ (function () {
* Returns the current version of the framework
*/
get: function () {
return "5.0.0-alpha.44";
return "5.0.0-alpha.45";
},
enumerable: false,
configurable: true
Expand Down Expand Up @@ -81294,6 +81295,7 @@ var Light = /** @class */ (function (_super) {
clonedLight.parent = newParent;
}
clonedLight.setEnabled(this.isEnabled());
this.onClonedObservable.notifyObservers(clonedLight);
return clonedLight;
};
/**
Expand Down Expand Up @@ -150476,6 +150478,7 @@ var InstancedMesh = /** @class */ (function (_super) {
}
}
result.computeWorldMatrix(true);
this.onClonedObservable.notifyObservers(result);
return result;
};
/**
Expand Down Expand Up @@ -151247,6 +151250,9 @@ var Mesh = /** @class */ (function (_super) {
}
};
_this.onMeshReadyObservable = new _Misc_observable__WEBPACK_IMPORTED_MODULE_1__["Observable"](_this._internalMeshDataInfo._onMeshReadyObserverAdded);
if (source) {
source.onClonedObservable.notifyObservers(_this);
}
return _this;
}
/**
Expand Down Expand Up @@ -160131,7 +160137,7 @@ var TransformNode = /** @class */ (function (_super) {
/**
* Sets the Vector3 "result" as the rotated Vector3 "localAxis" in the same rotation than the mesh.
* localAxis is expressed in the mesh local space.
* result is computed in the Wordl space from the mesh World matrix.
* result is computed in the World space from the mesh World matrix.
* @param localAxis axis to rotate
* @param result the resulting transformnode
* @returns this TransformNode.
Expand Down Expand Up @@ -232134,6 +232140,7 @@ var _InternalNodeDataInfo = /** @class */ (function () {
this._isParentEnabled = true;
this._isReady = true;
this._onEnabledStateChangedObservable = new _Misc_observable__WEBPACK_IMPORTED_MODULE_3__["Observable"]();
this._onClonedObservable = new _Misc_observable__WEBPACK_IMPORTED_MODULE_3__["Observable"]();
}
return _InternalNodeDataInfo;
}());
Expand Down Expand Up @@ -232359,6 +232366,16 @@ var Node = /** @class */ (function () {
enumerable: false,
configurable: true
});
Object.defineProperty(Node.prototype, "onClonedObservable", {
/**
* An event triggered when the node is cloned
*/
get: function () {
return this._nodeDataStorage._onClonedObservable;
},
enumerable: false,
configurable: true
});
/**
* Gets the scene of the node
* @returns a scene
Expand Down Expand Up @@ -232789,6 +232806,8 @@ var Node = /** @class */ (function () {
// Callback
this.onDisposeObservable.notifyObservers(this);
this.onDisposeObservable.clear();
this.onEnabledStateChangedObservable.clear();
this.onClonedObservable.clear();
// Behaviors
for (var _a = 0, _b = this._behaviors; _a < _b.length; _a++) {
var behavior = _b[_a];
Expand Down
2 changes: 1 addition & 1 deletion dist/preview release/babylon.max.js.map

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions dist/preview release/babylon.module.d.ts
Expand Up @@ -34958,6 +34958,10 @@ declare module "babylonjs/node" {
* An event triggered when the enabled state of the node changes
*/
get onEnabledStateChangedObservable(): Observable<boolean>;
/**
* An event triggered when the node is cloned
*/
get onClonedObservable(): Observable<Node>;
/**
* Creates a new Node
* @param name the name and id to be given to this node
Expand Down Expand Up @@ -35448,7 +35452,7 @@ declare module "babylonjs/Meshes/transformNode" {
/**
* Sets the Vector3 "result" as the rotated Vector3 "localAxis" in the same rotation than the mesh.
* localAxis is expressed in the mesh local space.
* result is computed in the Wordl space from the mesh World matrix.
* result is computed in the World space from the mesh World matrix.
* @param localAxis axis to rotate
* @param result the resulting transformnode
* @returns this TransformNode.
Expand Down Expand Up @@ -125991,6 +125995,10 @@ declare module BABYLON {
* An event triggered when the enabled state of the node changes
*/
get onEnabledStateChangedObservable(): Observable<boolean>;
/**
* An event triggered when the node is cloned
*/
get onClonedObservable(): Observable<Node>;
/**
* Creates a new Node
* @param name the name and id to be given to this node
Expand Down Expand Up @@ -126471,7 +126479,7 @@ declare module BABYLON {
/**
* Sets the Vector3 "result" as the rotated Vector3 "localAxis" in the same rotation than the mesh.
* localAxis is expressed in the mesh local space.
* result is computed in the Wordl space from the mesh World matrix.
* result is computed in the World space from the mesh World matrix.
* @param localAxis axis to rotate
* @param result the resulting transformnode
* @returns this TransformNode.
Expand Down
2 changes: 1 addition & 1 deletion dist/preview release/glTF2Interface/package.json
@@ -1,7 +1,7 @@
{
"name": "babylonjs-gltf2interface",
"description": "A typescript declaration of babylon's gltf2 inteface.",
"version": "5.0.0-alpha.44",
"version": "5.0.0-alpha.45",
"repository": {
"type": "git",
"url": "https://github.com/BabylonJS/Babylon.js.git"
Expand Down

0 comments on commit 2f8f66b

Please sign in to comment.